将 Github 上的 IPython 笔记本变成博客的最佳方法是什么?
What is the best way to turn IPython Notebooks on Github to a blog?
我有一些 IPython 笔记本,我在 GitHub 维护。我想把它们变成一个博客。我想在笔记本的末尾有一个讨论区,以便读者发表评论。我不希望用户直接在网站上执行代码(能看到notebook就可以了),如果要执行,可以在自己的电脑上复制代码和运行。如果可能的话,我不想要笔记本的单独副本,我想要一个副本以便于维护。实现此目标的最佳方式(最好是免费方式)是什么?
谢谢
您似乎想要导出笔记本的静态版本?您可以使用 nbconvert
之类的工具,根据 its documentation:
allows you to convert a Jupyter .ipynb notebook document file into another static format including HTML, LaTeX, PDF, Markdown, reStructuredText, and more. nbconvert can also add productivity to your workflow when used to execute notebooks programmatically.
您可以导出所需的格式并添加剩余的标记以用于评论或其他功能。
Hamel Husain 最近在 Jupyter 话语论坛发帖 a very full-featured Jupyter blogging system hosted on GitHub Pages called fastpages. It seems well documented and state-of-the-art. It allows a comments section, see here。
我有一些 IPython 笔记本,我在 GitHub 维护。我想把它们变成一个博客。我想在笔记本的末尾有一个讨论区,以便读者发表评论。我不希望用户直接在网站上执行代码(能看到notebook就可以了),如果要执行,可以在自己的电脑上复制代码和运行。如果可能的话,我不想要笔记本的单独副本,我想要一个副本以便于维护。实现此目标的最佳方式(最好是免费方式)是什么? 谢谢
您似乎想要导出笔记本的静态版本?您可以使用 nbconvert
之类的工具,根据 its documentation:
allows you to convert a Jupyter .ipynb notebook document file into another static format including HTML, LaTeX, PDF, Markdown, reStructuredText, and more. nbconvert can also add productivity to your workflow when used to execute notebooks programmatically.
您可以导出所需的格式并添加剩余的标记以用于评论或其他功能。
Hamel Husain 最近在 Jupyter 话语论坛发帖 a very full-featured Jupyter blogging system hosted on GitHub Pages called fastpages. It seems well documented and state-of-the-art. It allows a comments section, see here。