jupyter经过notedown使用markdown

0 Problem
最近看了下李沐老师的mxnet教程,在使用jupyter的时候打开教程发现全是markdown源文,没有展现markdown格式的文字。

git

1 Reason
源代码是用markdown格式存储的,而不是jupyter默认的ipynb格式。
jupyter要经过notedown插件来使用markdown。

github

2 Solution
我浏览的时候教程里的安装指导没有涉及到这一步,并且notedown参考安装的连接已失效。
李沐老师的教学视频中发现了安装方法。bash

pip install https://github.com/mli/notedown/tarball/master
jupyter notebook --NotebookApp.contents_manager_class='notedown.NotedownContentsManager'


另外,能够经过配置,默认开启notedown插件,这样就不用每次都加这么长的参数了。首先生成配置文件。markdown

jupyter notebook –generate-config

在配置文件(~/.jupyter/jupyter_notebook_config.py)末尾加入ide

c.NotebookApp.contents_manager_class = ‘notedown.NotedownContentsManager’



以后就只须要运行jupyter notebook就能够本地访问教程和代码了。插件

相关文章
相关标签/搜索