20
loading...
This website collects cookies to deliver better user experience
watch the video version of this post on YouTube
jut
is packaged and available on pypi so installing is as easy as pip installing it.pip install jut
jut https://cantera.org/examples/jupyter/thermo/flame_temperature.ipynb
jut https://cantera.org/examples/jupyter/thermo/flame_temperature.ipynb --head 3
jut https://cantera.org/examples/jupyter/thermo/flame_temperature.ipynb --tail 2
jut
cli to explore all the options that it offers.jut --help
pipx
can manage a separate virual environment for you. This is one of the biggest selling points for me.pipx run jut https://cantera.org/examples/jupyter/thermo/flame_temperature.ipynb --head 3
jut
is the lightweight option that I think will fit the bill often for me, but it just doesn't always cut it. Mostly if there are images in the notebook or large output that is hard to read, its time to pull out the medium guns that sit between fulling running jupyter and jut
.pip install nbconvert
nbconvert does not have its own cli, instead it sits under the jupyter command.
Need to see images, go here!
wget https://cantera.org/examples/jupyter/thermo/flame_temperature.ipynb
jupyter nbconvert flame_temperature.ipynb --to html
python -m http.server
Note, nb convert does not work with a url, you will need to have the notebook locally.
nbconvert
also offers a standard help flag that you can access by passing in--help
flagjupyter nbconvert --help
nbconvert
also supports converting to many other formats, one option that is quite interesting for use in the terminal is markdown. We could simply convert the notebook to markdown and cat it out.jupyter nbconvert flame_temperature.ipynb --to maarkdown
cat flameflame_temperature.md
bat
as cat
so I don't get quite as much benefit from glow
, but it still looks pretty good.glow flameflame_temperature.md
lookatme flameflame_temperature.md
jut
.pip install rich
python -m rich.markdown flame_temperature.md
jut
can leverage pipx
to manage the installation sandbox for you.