In [7]:
%matplotlib inline
from pylab import *
from pylab import *

In [8]:
#importing widgets
from ipywidgets import widgets
from IPython.display import display

Basic plot example


In [9]:
from matplotlib.pyplot import figure, plot, xlabel, ylabel, title, show

In [10]:
x=linspace(0,5,10)
y=x**2

In [11]:
figure()
plot(x,y,'r')
xlabel('x')
ylabel('y')
title('title')
show()


$$c = \sqrt{a^2 + b^2}$$

Widget example


In [13]:
from IPython.display import display
text = widgets.Text()

display(text)

def handle_submit(sender):
    print(text.value)
    
text.on_submit(handle_submit)


Widget Javascript not detected.  It may not be installed or enabled properly.

In [ ]:


In [ ]: