In [2]:
import os
import numpy as np

In [3]:
print(os.path.dirname('./'))


.

Test de ma fonction Coucou


In [4]:
import matplotlib.pyplot as plt

In [11]:
x = np.arange(2, 10, .1)
y = x*x

Mes graphs qui vont bien


In [13]:
plt.plot(x,y)


Out[13]:
[<matplotlib.lines.Line2D at 0x115325518>]

In [8]:
x = x - 8
x


Out[8]:
array([-14. , -13.9, -13.8, -13.7, -13.6, -13.5, -13.4, -13.3, -13.2,
       -13.1, -13. , -12.9, -12.8, -12.7, -12.6, -12.5, -12.4, -12.3,
       -12.2, -12.1, -12. , -11.9, -11.8, -11.7, -11.6, -11.5, -11.4,
       -11.3, -11.2, -11.1, -11. , -10.9, -10.8, -10.7, -10.6, -10.5,
       -10.4, -10.3, -10.2, -10.1, -10. ,  -9.9,  -9.8,  -9.7,  -9.6,
        -9.5,  -9.4,  -9.3,  -9.2,  -9.1,  -9. ,  -8.9,  -8.8,  -8.7,
        -8.6,  -8.5,  -8.4,  -8.3,  -8.2,  -8.1,  -8. ,  -7.9,  -7.8,
        -7.7,  -7.6,  -7.5,  -7.4,  -7.3,  -7.2,  -7.1,  -7. ,  -6.9,
        -6.8,  -6.7,  -6.6,  -6.5,  -6.4,  -6.3,  -6.2,  -6.1])

In [9]:
from IPython.core.display import display, HTML
display(HTML('<h1>Hello, world!</h1>'))


Hello, world!


In [14]:
from IPython.display import IFrame

IFrame(src='./nice.html', width=700, height=600)


Out[14]:

In [ ]: