#!/usr/bin/env python # coding: utf-8 # ## Matplotlib # In[1]: import numpy as np import matplotlib.pyplot as plt # In[2]: x = np.linspace(0, 10, 1000) plt.plot(x, np.sin(x)); # In[3]: plt.show() # ## Matplotlib: support for widgets backend # In[ ]: get_ipython().run_line_magic('pip', 'install -q ipympl') # In[ ]: get_ipython().run_line_magic('matplotlib', 'widget') # In[ ]: x = np.linspace(0, 10, 1000) plt.plot(x, np.sin(x))