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 hashes)

Uploaded Source

Built Distribution

plaited-0.0.1-py3-none-any.whl (11.5 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