Some cells to test the flags that control doc generation.
print('output should be hidden')
from nbdev.showdoc import show_doc
from decision_tree.test.doc import _TstClass
class AnotherTestClass():
"just another test class"
def a():
"with a dummy method"
pass
# exports
print('exported and shown')
print('collapse')
print('collapse_show')
def demo_multi_line_of_code():
print('collapse-show with multiple lines of code')
demo_multi_line_of_code()
#collapse-show
def demo_multi_line_of_code():
print('collapse-show AND collapse-output with multiple lines of code')
demo_multi_line_of_code()
# Note: nbdev does not allow both input and outout to be collapse - input gets picked up first
print('collapse_hide')
print('collapse_output')
print('collapse-output\nwith\nmultiple lines of output')
The cell below hides its input and collapses output
# slow
print('output should be hidden - even when used with test flag')
#hide_output
print('output should be hidden - even when used with test flag')