/jconv

A basic Jupyter notebook conversion utility for Typst

Primary LanguageTypstThe UnlicenseUnlicense

JConv - a simple Jupyer notebook converter for Typst

This utility leverages the sourcerer, ansi-render, based, cmarker and showybox packages to convert basic Jupyter notebook files to PDF.

Usage

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

Known issues

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

Other packages used in this package