How to export an IPython notebook to HTML for a blog post?

前端 未结 4 1589
离开以前
离开以前 2020-12-05 02:31

What is the best way to get an ipython notebook into html format for use in a blog post?

It is easy to turn an ipython notebook into a PDF, but I\'d rather publish a

4条回答
  •  忘掉有多难
    2020-12-05 02:40

    All the above answers seems outdated. Here is the most modern solution taken from the official nbconvertdocs.

    $ jupyter nbconvert --to FORMAT notebook.ipynb

    The default output format is html, for which the --to argument may be omitted:

    $ jupyter nbconvert notebook.ipynb

提交回复
热议问题