#default_exp tutorial from nbdev.showdoc import show_doc #export def say_hello(to): "Say hello to somebody" return f'Hello {to}!' say_hello("Sylvain") from IPython.display import display,SVG display(SVG('')) assert say_hello("Jeremy")=="Hello Jeremy!" #export class HelloSayer: "Say hello to `to` using `say_hello`" def __init__(self, to): self.to = to def say(self): "Do the saying" return say_hello(self.to) show_doc(HelloSayer.say) o = HelloSayer("Alexis") o.say()