November 2018
Beginner to intermediate
214 pages
5h 2m
English
Before getting started, we will have to install ipywidgets. We will use the pip install ipywidgets command to do this. After this has been successfully installed, we need to enable the extension within the Jupyter Notebook. To do that, use the jupyter nb extension enable - -py widgetsnbextension command, which will enable the widgets to interact with the Jupyter Notebook.
Begin as usual by importing and setting up the Matplotlib environment, including the ipywidgets module, the interactive, fixed, and interact_manual methods, as well as ipywidgets itself as widgets:
import numpy as npimport matplotlib as mplimport matplotlib.pyplot as pltfrom ipywidgets import interact, interactive, fixed, ...
Read now
Unlock full access