Content with notebooks#
-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 \(add_{math}\) and
-or
-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:
-from pandas.plotting import parallel_coordinates
+df = pd.read_csv('cleaned.csv')
+plt.figure()
+parallel_coordinates(data, "geo")
+
---------------------------------------------------------------------------
+NameError Traceback (most recent call last)
+Cell In[2], line 4
+ 2 df = pd.read_csv('cleaned.csv')
+ 3 plt.figure()
+----> 4 parallel_coordinates(data, "geo")
+
+NameError: name 'data' is not defined
+
<Figure size 640x480 with 0 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
- -