pannb—pandoc filter for ipynb
Project description
- Date:
- September 2, 2021
docs |
|
---|---|
tests |
|
package |
|
conda-forge |
Introduction
Pandoc supports ipynb format. What this does is add support of
jupytext style yaml metadata block
filter out the Python code block
convert raw block to native pandoc AST, e.g.
if a cell outputs HTML, then it is an HTML raw block by default, meaning only HTML-like output formats contains these output cells. This filter convert them using pandoc itself to native pandoc AST so that any output formats will contains the same output.
These 3 filters are implemented as 3 individual functions, so that you can cherry-pick your own combinations (See API doc). The command line program pannb have all 3 included.
Example
See docs/example.ipynb for the input notebook and its output without the filter and output with the filter. Note that the output will be correct only if you set --ipynb-output=html after this patch is merged.
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.