Skip to main content

Literate computing for literate programming

Project description

The pidgy package and paper

pidgy is a fun way to program in [Markdown] in your favorite IDE (jupyter, nteract, colab, vscode) and use them in python modules, scripts, and applications.

Binder Documentation Status Python package PyPI - Python Version

pip install pidgy    # Install pidgy

pidgy provides an interactive literate programming experience that allows fluid combinations of code and prose. It has some added language features like block markdown variables, emoji variables names, and interactive formal testing. It is designed primarily for Jupyter notebooks and Markdown source files.

The pidgy shell and kernel

pidgy can be used as a native jupyter kernel in Jupyter, nteract, colab, and vscode. Install the kernel with

pidgy kernel install # install the pidgy kernel.

Or, in your standard Python shell, load the pidgy IPython extension.

Importing pidgy documents

pidgy uses the importnb machinery to import files into [Python] that are not native ".py" files.

import pidgy
with pidgy.pidgyLoader(): ...

The pidgy CLI

The pidgy cli helps to tangle and weave entire literate pidgy programs.

Usage: pidgy [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  kernel
  render
  run       `pidgy` `run` makes it possible to execute `pidgy` documents as...
  template
  test      Formally test markdown documents, notebooks, and python files.
  to

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pidgy-2020.4.23.tar.gz (34.7 kB view hashes)

Uploaded Source

Built Distribution

pidgy-2020.4.23-py3-none-any.whl (46.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page