Running through the nbdev tutorial
%load_ext autoreload
%autoreload 2

say_hello[source]

say_hello(to:str)

Say hello to somebody.

to: Who to say helo to Returns a salutation to

display(HTML(say_hello("Sylvain")))
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)]))
[<matplotlib.lines.Line2D at 0x7f021f2aa580>]

say_goodbye[source]

say_goodbye(to:str)

Say goodbye to somebody.

to: Who to say helo to

say_goodbye("John")
'Bye John'

Sayers

class HelloSayer[source]

HelloSayer(to:str)

Say hello to to using say_hello

HelloSayer.say[source]

HelloSayer.say()

Do the saying

o = HelloSayer("Alexis")
o.say()
'Hello <b>Alexis</b>! 👋'
from nbdev.export import notebook2script; notebook2script()
Converted 00_core.ipynb.
Converted index.ipynb.