<jupyter_start><jupyter_text>Test nbdev doc flags> Some cells to test the flags that control doc generation. hideyou can hide a markdown cell hide_inputany flag other that hide should be ignored in markdown cells<jupyter_code>#hide
print('input and output should be hidden')
  #  hide_input
print('input should be hidden')
 # hide_output
print('output should be hidden')
#exporti
class _TstClass():
    "It's a test class"
    def a(self):
        "no flag"
        pass
    def b(self):
        "hide flag"
        pass
    def c(self):
        "hide_input flag"
        pass
    def d(self):
        "hide_output flag"
        pass
from nbdev.showdoc import show_doc
from decision_tree.test.doc import _TstClass
show_doc(_TstClass.a)
# hide
show_doc(_TstClass.b)
# hide_input
show_doc(_TstClass.c)
# hide_output
show_doc(_TstClass.d)
#exports
class AnotherTestClass():
    "just another test class"
    def a():
        "with a dummy method"
        pass
show_doc(AnotherTestClass.a)
# this cell should be exported and shown but exports tag should be removed
# exports
print('exported and shown')
#collapse
print('collapse')
#collapse_show
print('collapse_show')
#collapse-show
def demo_multi_line_of_code():
    print('collapse-show with multiple lines of code')
demo_multi_line_of_code()
#collapse-output
#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
#collapse_hide
print('collapse_hide')
#collapse_output
print('collapse_output')
#collapse-output
print('collapse-output\nwith\nmultiple lines of output')<jupyter_output>collapse-output
with
multiple lines of output<jupyter_text>The cell below hides its input and collapses output<jupyter_code>#hide_input  
#collapse-output
print('collapse-output\nwith\nmultiple lines of output\nand hidden input')<jupyter_output>collapse-output
with
multiple lines of output
and hidden input<jupyter_text>combine flags that control doc generation and other flags<jupyter_code># hide
#slow
print('input and output should be hidden - even when used with test flag')
#hide_input
# slow
print('input should be hidden - even when used with test flag')
#hide_output
#  slow
print('output should be hidden - even when used with test flag')<jupyter_output>output should be hidden - even when used with test flag<jupyter_text>nbdev "0.2.18" (pre-magic) is sensitive to the order of multiple flagsworks fine for `hide_input`/`hide_output` but misses the `hide` flags unless it's the 1st thing in the cell<jupyter_code>#slow
# hide
#TODO: check after migrate to flags that this cell is hidden in the docs
print('input and output should be hidden - even when used with test flag')
# slow
#hide_input
print('input should be hidden - even when used with test flag')
#  slow
#hide_output
print('output should be hidden - even when used with test flag')
#hide 
# from nbdev.export2html import convert_nb
# convert_nb('50_test_doc.ipynb')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08130871396177519, 'fraction_numerical': 0.0025915127955944283, 'mean_word_length': 4.848484848484849, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '631093', 'license': 'Apache-2.0', 'n_tokens_mistral': 954, 'n_tokens_neox': 939, 'n_words': 340, 'path': '50_test_doc.ipynb', 'repo_name': 'pete88b/decision_tree', 'size': '3087'}