handout

Turn Python scripts into handouts with Markdown and figures

Github星跟踪图

Python Handout

PyPI

Turn Python scripts into handouts with Markdown comments and inline figures. An
alternative to Jupyter notebooks without hidden state that supports any text
editor., Code, Handout, ----, -------, Code, Handout, ## Getting started

You use Python Handout as a library inside a normal Python program:

  1. Install via pip3 install -U handout.
  2. Run your script via python3 script.py. (You can start with the example.py
    from the repository.)
  3. Open output/index.html in your browser to view the result.
  4. Iterate and refresh your browser.

Features

Create the handout via doc = handout.Handout(outdir) to access these features:, Feature, Example, -------, -------, Add [Markdown text][markdown] as triple-quote comments., """Markdown text""", Add text via print() syntax., doc.add_text('text:', variable), Add image from array or url., doc.add_image(image, 'png', width=1), Add video from array or url., doc.add_video(video, 'gif', fps=30, width=1), Add matplotlib figure., doc.add_figure(fig, width=1), Add custom HTML., doc.add_html(string), Insert added items and save to <outdir>/index.html., doc.show(), [markdown]: https://commonmark.org/help/

Questions

Feel free to create an issue on Github.

主要指标

概览
名称与所有者danijar/handout
主编程语言Python
编程语言Python (语言数: 3)
平台
许可证Apache License 2.0
所有者活动
创建于2018-08-28 15:30:22
推送于2021-08-28 07:48:24
最后一次提交2020-06-06 01:35:53
发布数0
用户参与
星数2k
关注者数47
派生数105
提交数48
已启用问题?
问题数41
打开的问题数12
拉请求数3
打开的拉请求数0
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?