Repository navigation
Is it possible to upload jupyter notebook files directly without embedding it into a markdown file? #3776
|
I want to share my Jupyter notebooks as a blog post. However, the _posts folder requires each file to be a Markdown file. As a workaround, I embedded my notebook in a Markdown file. Here is the page link: https://anwoybarua.github.io/posts/2026/10/xarray-guidebook-part1/ |
Replies: 1 comment 1 reply
|
Academic Pages uses Jekyll, which supports both Markdown and HTML posts. A raw To publish the notebook without an iframe, you can export it to Markdown: jupyter nbconvert --to markdown Xarray_guidebook_part_1.ipynbThen use the generated Markdown as the body of your existing This puts the notebook's text, code and saved outputs directly into the post. It removes the iframe's separate scrolling area, while the post still uses the theme's normal content width. If the export creates an The export uses the notebook's saved outputs; it doesn't rerun the cells. |
Academic Pages uses Jekyll, which supports both Markdown and HTML posts. A raw
.ipynbfile isn't rendered as a blog post by default, though.To publish the notebook without an iframe, you can export it to Markdown:
Then use the generated Markdown as the body of your existing
_posts/2026-10-07-Xarray-guidebook-part1.md, replacing the iframe. Keep your current YAML front matter at the top, including the title, date and permalink.This puts the notebook's text, code and saved outputs directly into the post. It removes the iframe's separate scrolling area, while the post still uses the theme's normal content width.
If the export cr…