A description
This notebook is used to demonstrate and test all the features of nbdev's export functionality. See the notebooks in nbs
for how it's used.
#|export
from __future__ import print_function
#|export
from __future__ import absolute_import
from fastcore.utils import patch,patch_to
#|hide
#|default_exp everything
#|default_cls_lvl 3
Each symbol name below has >=2 parts, split on _
. First part is a unique name. Second is y
if it should be exported. Third is nall
if it shouldn't appear in __all__
.
import nbdev.x,y,nbdev.z
from nbdev.x import *
#|export
def a_y(): ...
#|export
def a_y(f): # should only appear once
def ai_n(): ...
class a2i_n(): ...
return f
#|hide
#|export
def b_y(a:bool)->int: ...
#|exporti
#just another comment
def c_y_nall(): ...
#|export
class d_y():
def di_n(): ...
class d2i_n(): ...
@a_y
async def e_y(): ...
#|export
@patch
def d3i_n(self:d_y): ...
#|export
@patch_to(d_y)
def d4i_n(self): ...
#|export
def _f_y_nall(): ...
#|export some.thing
def h_n(): ...
def i_n(): ...
def j_n(): ...
#|export
#export is used in a full sentence here
#therefore this is not exported
def k_n(): ...
#exporting
def l_n(): ...
#|export
m_y = n_y = 1
#|export
exec("o_y=1")
exec("p_y=1")
_all_ = [o_y, 'p_y']
#|export
q_y,_r_n = (1,1)
#|export
a_y.test = 1
#|printme testing
_tmp = "Cell for testing processor subclass"
%%html
<b>a test</b>
print('\033[94mhello')
hello
#|eval:false
print("do not print me!")
do not print me!