Running through the nbdev tutorial
%load_ext autoreload
%autoreload 2
display(HTML(say_hello("Sylvain")))
assert say_hello("World") == "Hello <b>World</b>! 👋"
An image, because why not?
display(SVG('<svg height="50"><path d="M 10 10 C 30 70, 40 20, 50 30" stroke="black" fill="transparent"/></svg>'))
import matplotlib.pyplot as plt
import math
plt.plot(*zip(*[(x/200, math.exp(x/200)) for x in range(200)]))
say_goodbye("John")
o = HelloSayer("Alexis")
o.say()
from nbdev.export import notebook2script; notebook2script()