在博客(MarkDown模式)里嵌入如下代码:
<iframe src="http://nbviewer.jupyter.org/github/LiaoPan/MyCodeSpace/blob/master/Demo_juypter.ipynb" width="850" height="500"></iframe>
src里面写入自己想引用的源链接,但必须基于nbviewer.jupyter.org;你可以打开http://nbviewer.jupyter.org查看相关的使用方法;
src="http://nbviewer.jupyter.org/github/LiaoPan/MyCodeSpace/blob/master/Demo_juypter.ipynb" width="850" height="500">github上的源版代码:
https://github.com/LiaoPan/MyCodeSpace/blob/master/Demo_juypter.ipynb
再举一个栗子:
源码:
<iframe src="http://nbviewer.jupyter.org/url/jakevdp.github.com/downloads/notebooks/XKCD_plots.ipynb" width="850" height="10000"></iframe> src="http://nbviewer.jupyter.org/url/jakevdp.github.com/downloads/notebooks/XKCD_plots.ipynb" width="850" height="500">

本文介绍如何在Markdown编辑模式下将Jupyter Notebook通过iframe标签嵌入到博客文章中,展示并分享Jupyter Notebook代码及运行结果。文中提供了具体的iframe代码示例,并介绍了如何指定不同的源链接。
2071

被折叠的 条评论
为什么被折叠?



