#|hide
#|default_exp foobar
some md
#|export
import re
from nbdev.showdoc import show_doc
print('\033[94mhello')
hello
1+1
2
import pandas as pd
pd.DataFrame(dict(a=[1,2]))
a | |
---|---|
0 | 1 |
1 | 2 |
import matplotlib.pyplot as plt
#|notest
plt.figure(figsize=(2,1))
plt.plot([1,2]);
My pic:
#|hide
print('you will not be able to see this cell at all')
you will not be able to see this cell at all
def show():
a = 2
b = 3 #|hide_line
%%time
print('hi')
hi CPU times: user 1.32 ms, sys: 165 µs, total: 1.48 ms Wall time: 881 µs
%%bash
echo hi
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.']))
A line Foobar baz FutureWarning blah zig zagMultiIndex zoom Another line.
def cool_func(a):
'''This cell has "hidden" metadata property'''
pass
some words
This is a link to numpy.array
and to ModuleMaker
but not a link to foobar
.
And not a link to dict2nb
.
#|exporti
class a(Exception): ...
#|export
class b(a): ...
b()
__main__.b()