/nbsanity

Render notebooks like nbviewer, but using Quarto as the renderer

Primary LanguagePython

nbsanity

Like nbviewer, but uses Quarto as the renderer.

Try It

https://nbsanity.com

Setup

Local development

First, install dependencies:

pip install -U fastapi "uvicorn[standard]" fastcore

Also, install Quarto.

Then, run the app:

uvicorn main:app

Docker

Run the script run_docker.sh to build and run the docker image.

Usage

You will see instructions on how to use the app on the home page. If running locally, you should substitute nbsanity.com with localhost:<PORT> in the instructions.

For Hamel

To launch to dokku, add the remote:

git remote add prod dokku@nbsanity:q

Then, push to the remote:

ssh dokku@nbsanity repo:purge-cache q
git push prod