Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

You can also create content with Jupyter Notebooks. This means that you can include code blocks and their outputs in your book.

Markdown + notebooks

As it is markdown, you can embed images, HTML, etc into your posts!

You can also addmathadd_{math} and

mathblocksmath^{blocks}

or

meanlatexmathblocks\begin{aligned} \mbox{mean} la_{tex} \\ \\ math blocks \end{aligned}

But make sure you $Escape $your $dollar signs $you want to keep!

MyST markdown

MyST markdown works in Jupyter Notebooks as well. For more information about MyST markdown, check out the MyST guide in Jupyter Book, or see the MyST markdown documentation.

Code blocks and outputs

Jupyter Book will also embed your code blocks and output in your book. For example, here’s some sample Matplotlib code:

<contextlib.ExitStack at 0x7fdd91166d90>
<Figure size 1000x500 with 1 Axes>

There is a lot more that you can do with outputs (such as including interactive outputs) with your book. For more information about this, see the Jupyter Book documentation