In [7]:
%matplotlib inline
from pylab import *
from pylab import *
In [8]:
#importing widgets
from ipywidgets import widgets
from IPython.display import display
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()
In [13]:
from IPython.display import display
text = widgets.Text()
display(text)
def handle_submit(sender):
print(text.value)
text.on_submit(handle_submit)
In [ ]:
In [ ]: