pythonipythonjupyter-notebook

How to have python code and markdown in one cell


Can jupyter notebook support inline python code (arthritic calculations, or plot a figure) in markdown cell, or verse visa. Have both python code and markdown in one cell.


Solution

  • I don't think that's possible but there is an extension that you could use: https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/python-markdown

    That way you can display the result (and only the result) of a python statement inside a markdown cell.