Conventions for writing code in the notebook.
Project description
pidgy literate notebook programming
pidgy is literate programming kernel and shell for IPython.
When pidgy is enabled:
- Write code in
markdown, indented and fenced are executed. doctests inmarkdownare tested.- Include
objects inmarkdownwithjinja2templatesyntax. notebooks can be woven and tangled as documentation and code.notebooks can be reproduced as tests.".md.ipynb"is a composite extension that indicatespidgynotebooks primarly written inmarkdown
The pidgy programming paper.
pidgy is written as literate programming in notebooks;
the narrative develop together into a cohesive program
that serves dually as literature and reusable source code.
import pidgy
pidgy command line application
Install the IPython kernels
Install the pidgy kernel so you can use whenever you want.
pidgy kernel install
Load the IPython extension
Otherwise, using the pidgy IPython extension any jupyter notebook.
%load_ext pidgy
Likely, the only other paper of the api you made need is the pidgy.pidgyLoader
that allows pidgy documents to be imported as normal source code.
The loader searches for notebooks with the ".md.ipynb" extension
and adds them to the python import system.
reuse pidgy documents as modules
with pidgy.pidgyLoader():
import readme
assert readme.__file__.endswith('.md.ipynb')
The plurality of pidgy
Above we've highlight a few outcomes of pidgy programming.
pidgy is written as both documentation and source code therefore it
can be viewed by the following tools.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pidgy-0.2.1.tar.gz.
File metadata
- Download URL: pidgy-0.2.1.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b13192eea1c11ffd4d4bbf19a0cd7c2caaf9f8000d171f1e577dfbac3ffaecd
|
|
| MD5 |
d2c98a1a49090f43c92bacc5209fe38c
|
|
| BLAKE2b-256 |
e044ce1712d4ead3f6a3106c143328f56e7fcac4edfc94cf14fa31b5f4aea7b0
|
File details
Details for the file pidgy-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pidgy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
910c56640da23929c6fffd9cc4f5c06d8e33158ed482c0bba6b51742e3993787
|
|
| MD5 |
d92564eb8e38a273fac2e85a968967d0
|
|
| BLAKE2b-256 |
32d4020929c41e3355096c3ccd1d046ac7313b79ff695b025bc677ed979a14ce
|