1. 程式人生 > >jupyter中用notedown外掛來讀取md文件

jupyter中用notedown外掛來讀取md文件

使用notedown外掛來讀寫github原始檔

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

【可選項】預設開啟notedown外掛

首先生成jupyter配置檔案(如果已經生成過可以跳過)

jupyter notebook –generate-config
將下面這一行加入到生成的配置檔案的末尾(Linux/macOS一般在~/.jupyter/jupyter_notebook_config.py)

c.NotebookApp.contents_manager_class = ‘notedown.NotedownContentsManager’
之後就只需要執行jupyter notebook即可。