1. Install Jupyter notebook extension plugin: https://github.com/ipython-contrib/jupyter_contrib_nbextensions
    1. conda install -c conda-forge jupyter_contrib_nbextensions
    2. jupyter contrib nbextension install --user
  2. Go to Jupyter notebook
    1. click Nbextensions
    2. enable Python Markdown
  3. use {{python variable}} in markdown cell. 🙂

This Post Has 3 Comments

  1. Javier

    I think that the second step is not necessary. Check http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html:

    “Conda
    There are conda packages for the notebook extensions and the jupyter_nbextensions_configurator available from conda-forge. You can install both using

    conda install -c conda-forge jupyter_contrib_nbextensions
    This also automatically installs the Javascript and CSS files (using jupyter contrib nbextension install –sys-prefix), so the second installation step below can therefore be skipped.”

    1. connygy

      Hi Javier, sorry, I read this comment later, thanks very much for the mention. I will correct the post later! 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.