Skip to main content

Publish reproducible code notebooks using pandoc and jupyter kernels

Project description

plaited 🪢

build Coverage Status

plaited is a Pandoc filter that uses Jupyter kernels to generate code notebooks. It's a flexible tool for publishing documents that include code execution in a variety of languages and formats. It is a fork of Knitty, which is a fork of Stitch, which used code from knitpy and nbconvert.

Installation

plaited is available on TestPyPI:

pip install -i https://test.pypi.org/simple/ plaited

I will publish it to PyPI once it is more mature.

Getting Started

plaited is plug-and-play with Pandoc:

pandoc --filter plaited -o out.html input.md

Motivation

Why another code notebook generator?

Ultimately, plaited is a personal project that I work on for my own benefit. After reading about Codebraid, Stitch, and Knitty, I wanted a similar tool that meets the following criteria:

Pandoc filter

  • embrace Pandoc AST, allowing other filters, templates, or Pandoc itself to make any formatting decisions
  • use Panflute to manage document elements

Jupyter client

modern Python package

  • aim to write hackable, maintainable code
  • use modern setuptools configuration

Contributing

You are more than welcome to submit a pull request to this repository, or open an issue, or send me an email…I'd love to hear from you!

Thanks

plaited builds upon the work of hundreds of people! Here are a handful of them:

Similar tools that influenced this project:

License

There seems to have been a misunderstanding by previous developers of this project regarding license compatibility. Stitch and Knitty, by Tom Augspurger and Peter Zagubisalo respectively, were released using the MIT License. Their code is adapted from the knitpy and IPython projects, both released under BSD licenses. I am not a lawyer, but I do not believe that BSD licenses are compatible with the MIT license. I hope that by relicensing this project under the Modified (3-Clause) BSD License, work by all prior contributors is being used according to their original licenses. This is not legal advice, and I welcome any feedback regarding the licensure of this repository.

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

plaited-0.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

plaited-0.0.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file plaited-0.0.1.tar.gz.

File metadata

  • Download URL: plaited-0.0.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for plaited-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a2ea2da84ae99497a88ce763ef5e2e8ba78638645a987d1b4f984656f11e5d05
MD5 3f31617563f28bcf3710fd15b2182fd9
BLAKE2b-256 def6506da0bcbe0f2050e5e0941d42e840e0b9ac0839d2116538e67c23e10eb5

See more details on using hashes here.

File details

Details for the file plaited-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: plaited-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for plaited-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d23413e23cd7b05022b29a0880ee8c9e7c130230986d1780240a9ce7200690bf
MD5 1a2cbb71ad52890f13abec9997d9dd48
BLAKE2b-256 9662c4a2d0d1509010e6ea937e54b3e2a80322d8b8ea18eb7687a3f21fd4dc68

See more details on using hashes here.

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