jupyter notebook可以实现md文件的直接打开和源码与markdown展示效果的切换,以下是操作方法:
1.使用pip安装notedown
pip install notedown
2.寻找配置文件jupyter_notebook_config.py并打开,没有的话就用以下命令新建,创建完成会显示该文件路径
jupyter notebook --generate-config
3.找到该配置文件,增加以下内容,然后保存
c.NotebookApp.contents_manager_class = 'notedown.NotedownContentsManager'
4.启动jupyter notebook即可直接打开md文件并实现markdown直接显示
参考文献:
1.jupyter notebook如何打开md文件
2.Config file and command line options