carbonian.org / manual pages
CARBONIAN-NB(1) Carbonian Manual CARBONIAN-NB(1)

carbonian-nb - run a Jupyter notebook (Python, R, Julia) in the terminal and show its outputs and sixel figures

carbonian-nb [--last|--preview] [--nav] [--code] [--figs] [--save] NOTEBOOK.ipynb

carbonian-nb runs a notebook's code cells in order, cell by cell, and shows in the terminal what each printed and drew: the Markdown cells, a line In [n] with the first line of the cell, its text output and its figures (as sixel pictures). An error in a cell is shown and the run goes on, as in Jupyter.

The runner is chosen by the language the notebook names (its kernelspec's language, else its language_info's name, else the kernelspec's name, else Python): R (r, ir) is run by rnb, Julia by jnb (carbonian-jnb(1)), Python by pnb, the helpers in /usr/lib/carbonian/notebook. Any other language is refused.

carbonian-notebook FILE.ipynb does the same; see carbonian-notebook(1) for what a run does and for the R and Julia set-up.

Run nothing: show the output saved in the notebook file, its last run.
Open the result in carbonian-view(1), a page at a time with the arrows, instead of printing it.
Also show each cell's code.
Only the figures: no text output, no cell titles, no Markdown cells. With --nav the viewer gets just the pictures, a page each.
Run the notebook and write the outputs back into the .ipynb file, as Jupyter's save does (the text, errors, the figures as image/png, the execution counts), atomically. A notebook that cannot be written, or whose folder cannot, is refused before the run; copy a packaged gallery first (carbonian-gallery --copy DIR). Not with --last.

1 when the notebook does not exist, cannot be saved into, or names a language with no runner; 2 for an unknown argument, no notebook, or --save with --last; otherwise the runner's or the viewer's status.

With --last, set: the temporary folder of the run is kept, and its name printed.
Where that folder is made (default /tmp).

carbonian-notebook(1), carbonian-jnb(1), carbonian-view(1), carbonian-gallery(1)

2026-11-03 Carbonian