In [ ]:
    
import numpy as np
import matplotlib.pyplot as plt
from ipywidgets import interact, interactive, fixed
    
In [ ]:
    
# Let's define a function (this cell can be hidden from the slideshow if you like)
import numpy as np
import matplotlib.pyplot as plt
from ipywidgets import interact
def plot_graph(a=-0.1,b=0.8,c=-0.3):
    # some arbitrary function of a,b,c
    x = np.linspace(0,10,100)
    y = a*a*np.square(x) + (b+a)*np.sin(x) + (c-a)*np.cos(x) + c*x
    plt.plot(x,y)
    plt.ylim(-30,30)
    plt.show()
    
In [ ]:
    
# Here's a static evaluation with default args
plot_graph(1.2,0.121,2.5)
    
In [ ]:
    
interact(plot_graph, a=(-2,2,0.2), b=(-2,3,0.1), c=(-2,2,0.1));
    
In [ ]: