--- execute: echo: false --- #|hide #|default_exp foobar #|export import re from nbdev.showdoc import show_doc print('\033[94mhello') 1+1 import pandas as pd pd.DataFrame(dict(a=[1,2])) import matplotlib.pyplot as plt #|notest plt.figure(figsize=(2,1)) plt.plot([1,2]); #|hide print('you will not be able to see this cell at all') def show(): a = 2 b = 3 #|hide_line %%time print('hi') %%bash echo hi #|export def some_func(a=1): ... #|export def another_func(b): "A link in a docstring: `ModuleMaker`." pass def and_another(c): ... show_doc(another_func) # should only appear once #|filter_stream FutureWarning MultiIndex print('\n'.join(['A line', 'Foobar baz FutureWarning blah', 'zig zagMultiIndex zoom', 'Another line.'])) def cool_func(a): '''This cell has "hidden" metadata property''' pass #|exporti class a(Exception): ... #|exports class b(a): ... b()