notebook_shortcode

Insert a Jupyter/IPython notebook into a post using shortcode

To install, run nikola plugin -i notebook_shortcode

This plugin inserts a Jupyter/IPython notebook into a post using shortcode. This is useful, for example, when adapting an existing notebook into a post with additional markup.

Usage:

{{% notebook path/to/notebook.ipynb %}}

Note: ipynb must be enabled and configured (COMPILERS, POSTS/PAGES) for CSS to appear properly. If you are using math in your notebook, make sure to add the mathjax tag to your post.

Requirements:

  • nbconvert (Python package)
  • traitlets (Python package)
  • ipython (Python package)

Issues? Questions?

You can report issues with this plugin and request help via GitHub Issues.