Skip to content
프로젝트

소개

Markdown과 그림을 사용해 Python 스크립트를 배포 자료로 변환

데이터 및 분석

이 수치를 측정하는 방법

What you can do

  • Add Markdown text 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)

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
-3

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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 examples/start.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 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()

Questions

Feel free to create an issue on Github.

관련 프로젝트 살펴보기

불러오는 중…