<jupyter_start><jupyter_text>`nbdev_one`> not much at this stage<jupyter_code>#hide
from nbdev.showdoc import *
#export
def whoami(name: str="Bernard"):
    """
    tells you who you are
    
    @param str name: your name 
    
    @return nothing
    """
    print(f"You must be {name}.")
whoami()
help(whoami)<jupyter_output>Help on function whoami in module __main__:

whoami(name: str = 'Bernard')
    #export<jupyter_text>Let us wrap this into a class.<jupyter_code>#export
class GuessWho:
    "a guessing interface"
    def __init__(self, name="Bernard"):
        self.name = name
    
    def guess(self):
        "tells the user their name"
        return whoami(self.name)
    
    
gw = GuessWho()
gw.guess()

gw_sp = GuessWho("MW")
gw_sp.guess()<jupyter_output>You must be Bernard.
You must be MW.<jupyter_text>To document the method:<jupyter_code>show_doc(GuessWho.guess)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11597374179431072, 'fraction_numerical': 0.0, 'mean_word_length': 3.7905759162303663, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '392819', 'license': 'Apache-2.0', 'n_tokens_mistral': 350, 'n_tokens_neox': 342, 'n_words': 82, 'path': '00_core.ipynb', 'repo_name': 'bsalanie/nbdev_one', 'size': '914'}