Wymaga współczesnej przeglądarki internetowej.
strona www: http://www.smcebi.us.edu.pl/infrastruktura-it/
smcebi.edu.pl
zmiana hasła
In [ ]:
In [3]:
for i in range(4):
print(i)
In [4]:
%matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np
In [5]:
X = np.linspace(-np.pi, np.pi, 656)
F = np.sin(1/(X**2+0.07))
plt.plot(X,F)
Out[5]:
In [9]:
from ipywidgets import interact
def f(x):
print(x)
interact(f, x=10);
In [22]:
from ipywidgets import widgets
w = widgets.IntSlider(min=0,max=10,value=3,step=1,width="430px")
In [24]:
w
In [25]:
w.value
Out[25]:
In [28]:
w.value = 4
In [29]:
from math import sin,cos
%timeit sin(cos(sin(1.23)))
In [30]:
import numpy as np
%timeit np.sum(np.sin(np.random.randn(int(1e6))))
In [14]:
%timeit np.sum(np.sin(np.random.randn(int(1e6))))
In [31]:
%time np.sum(np.sin(np.random.randn(int(1e6))))
Out[31]:
In [16]:
%%sh
pwd
for i in `ls`
do
echo Plik: $i
done
In [32]:
from ipywidgets import widgets
In [33]:
w = widgets.Text()
In [34]:
w
In [37]:
def mojcallback(w):
print("OK ----",w.value)
w.on_submit(mojcallback)
In [5]:
w.value = "dads"
In [ ]:
In [ ]: