Visualization
I mostly use plotly for visualization. It's pretty good for most things I want to graph. I usually use
graph_objsfor offline plotting.
import plotly.graph_objs as go
Since Jupyter Book does not currrently support Plotly graphs, I saved each plot as a .png file and read it in. The code to save a plotly visualization is as follows.
import os
fig.write_image("{name_of_image}.png")
To display the image, just use the IPython.display library
from IPython.display import display, Image
Image(filename='../images/{name_of_image}.png')