A nbdev 'Hello World!' tutorial
%load_ext autoreload
%autoreload 2
Add a function
Use an example to prove it works
say_hello("Diana")
Examples can output plots, images, etc, and they'll all appear in your docs, e.g.:
from IPython.display import display,SVG
display(SVG('<svg height="100"><circle cx="50" cy="50" r="40"/></svg>'))
We can also include some tests
assert say_hello("Jeremy")=="Hello Jeremy!"
Add a class
Show the documentation for HelloSayer
Do a test for the class
o = HelloSayer("Alexis")
o.say()