Working with Notebooks

How to develop a post in a notebook
Author

Matt Triano

Published

June 12, 2023

Modified

June 12, 2023

Code
import numpy as np
import matplotlib.pyplot as plt

r = np.arange(0, 4, 0.01)
theta = 2 * np.pi * r
fig, ax = plt.subplots(
  subplot_kw = {'projection': 'polar'} 
)
ax.plot(theta, r)
ax.set_rticks([0.5, 1, 1.5, 2])
ax.grid(True)
plt.show()
Figure 1: A line plot on a polar axis
  1. Develop a notebook

  2. Render that notebook via

    (quarto_env) user@hostname:~/...$ quarto render notebook_name.ipynb
  3. Preview your document via

    (quarto_env) user@hostname:~/...$ quarto preview quarto_blog/

    Note: Make sure draft: false in your document, or it won’t render.