Jupyter Notebook: interactive plot with widgets
As you want to change the figure, instead of creating a new one, may I suggest the following way: Use an interactive backend; %matplotlib notebook Update the line in the plot, instead of drawing new ones. So the code could look something like this: %matplotlib notebook from ipywidgets import * import numpy as np import … Read more