Notebooks#

Diese Seite wird einen Überblick über die Seiten geben, die direkt als “notebooks” generiert wurden und dann automatisch in eine Form übersetzt werden, die sie als web seiten sichtbar macht.

Technisches#

Die Umsetzung basiert auf MyST Markdown, das erlaubt direkt auszuführen in sogenannten “code cells”. Beispiel:

print(2 + 2)
4

When your book is built, the contents of any {code-cell} blocks will be executed with your default Jupyter kernel, and their outputs will be displayed in-line with the rest of your content.

See also

Jupyter Book uses Jupytext to convert text-based files to notebooks, and can support many other text-based notebook files.

Quickly add YAML metadata for MyST Notebooks#

If you have a markdown file and you’d like to quickly add YAML metadata to it, so that Jupyter Book will treat it as a MyST Markdown Notebook, run the following command:

jupyter-book myst init path/to/markdownfile.md