Jupyter notebook page

Contents

Jupyter notebook page#

This is a raw Jupyter notebook page, in .ipynb format.

Usage#

Basic code execution works:

!hostname
print(sum(range(10)))
fv-az1336-577
45

Directives work as well, since it is recursively executed by the same parser as normal Markdown files. Of course, Sphinx directives won’t be interperted within Jupyter itself, but that is probably OK for development purposes:

Exercise

This is a challenge block

You can learn more about this at the myst-nb docs. Most this applies equally to the .md files.

Configuration#

The nb_execution_mode variable in conf.py controls execution. Currently, we don’t set a default for this, which makes it auto. You can read more about this upstream. Possible values include:

  • off: don’t execute

  • auto: exceute *only if there are missing outputs

  • force: always re-execute

  • cache: always execute, but cache the output. Don’t re-execute if the input is unchanged.