一个用于写作论文的包装和单击。
dissertate的Python项目详细描述
安装
pip install dissertate
基本用法
在nb_config.py,
importdissertatec=get_config()c.Exporter.preprocessors=['dissertate.preprocessors.EmptyCellElider','dissertate.preprocessors.CellElider']c.Exporter.template_file=dissertate.markdown_template_path()
然后,
jupyter nbconvert --config nb_config.py --to markdown your_nb.ipynb
如果不希望输出中包含单元格,请编辑单元格元数据以包括,
{"tags":["private"]}
或者,您可以使用
{"tags":["todo"]}
或者,
{"tags":["setup"]}
对于对dissertate处理没有影响的语义差异。
如果要保留单元格的输出而不是代码(例如, 对于发出的matplotlib图,
{"tags":["output-generator"]}