This utility leverages the sourcerer, ansi-render, based, cmarker and showybox packages to convert basic Jupyter notebook files to PDF.
First, you need to import the file:
#import "jconv.typ": jconv
To output the notebook's contents as Typst content, you must supply the jconv
function with a dictionary, like so:
#jconv(json("Untitled.ipynb"))
- Only PNG image output is currently working. Other image types will probably be added in later.
- The cmarker package only converts the Markdown features present in the commonMark spec, which happens to exclude math equations (converting those would be a nightmare, anyway)
- sourcerer - source code renderer
- ansi-render - ANSI output renderer
- based - Base64 conversion of images
- cmarker - CommonMark renderer
- showybox - Used for boxes around Markdown and output blocks