在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:greenape/mknotebooks开源软件地址:https://github.com/greenape/mknotebooks开源编程语言:Python 90.3%开源软件介绍:mknotebooksmknotebooks is a plugin for MkDocs enabling you to include Jupyter notebooks directly in your project documentation. Install
Usage
Example: # mkdocs.yml
nav:
- your_notebook.ipynb
plugins:
- mknotebooks Any static images, plots, etc. will be extracted from the notebook and placed alongside the output HTML. OptionsYou can optionally execute the notebooks, by setting By default, execution will be aborted if any of the cells throws an error, but you can set Example: # mkdocs.yml
plugins:
- mknotebooks
execute: false
timeout: 100
preamble: "<path/to/your/script>"
allow_errors: false StylingMknotebooks applies default styling to improve the appearance of notebook input/output cells and pandas dataframes. If these interfere with any other CSS stylesheets that you're using, you can disable these via the following options.
Syntax highlightingIn order to enable syntax highlighting for code blocks,
BinderYou can also choose to have mknotebooks insert a Binder link into each notebook. - mknotebooks:
binder: true
binder_service_name: "gh"
binder_branch: "master"
binder_ui: "lab" If you are using GitLab, you will need to set ExamplesSee the examples folder for examples on the use of a preamble and using Binder. Try them out by running Inspecting generated markdownYou can also export the generated markdown by setting |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论