Märkdöwn


In [1]:
# code
print("Hellö Wörld!")


Hello World!

In [7]:
from IPython import display
import jinja2

In [38]:
display.SVG(
    data=jinja2.Template("""
<svg height="40" width="200">
    {% for c in circles %}
        <circle r="5" cx="{{ (c + 1) * 11}}" cy="5" fill="red"/>
    {% endfor %}
    <text y="24">This is an SVG</text>
</svg>""").render(circles=range(10))
)


Out[38]:
This is an SVG

In [43]:
import matplotlib.pyplot as plt
import numpy as np

In [44]:
%matplotlib inline

In [45]:
x = np.array(range(-100, 100))/100
y = np.sin((0.1 * x)**1)
plt.figure(figsize=(16,9))
plt.plot(x, y)
plt.show()