<jupyter_start><jupyter_text>module name here> API details.<jupyter_code>#hide
from nbdev.showdoc import *
from fastcore.test import *<jupyter_output><empty_output><jupyter_text>Function<jupyter_code>#export
def say_hello(to):
    "Say hello to somebody"
    return f'Hello {to}!2'
say_hello("Silvian")
from IPython.display import display,SVG
display(SVG('<svg height="100"><circle cx="50" cy="50" r="40"/></svg>'))
assert say_hello("Jeremy")=="Hello Jeremy!2"
#export
class HelloSayer:
    "Say hello to `to` using `say_hello`"
    def __init__(self, to): self.to = to

    def say(self):
        "Do the saying"
        return say_hello(self.to)
show_doc(HelloSayer.say)
o = HelloSayer("Alexis")
o.say()
#export

def proportion(a, b):
    """
    We can use triple " to describe what our function does.

    Here for example: we're creating a function to calculate
    the proportion of a of a + b
    """
    return a / (a + b)
proportion(20,21)
#export

def FtoC(x):
    """
    Escribe el valor de la temperatura en °C

    """
    return ((9/5)*x)+32
FtoC (0)
#export

def CtoF(x):
    """
    Escribe el valor de la temperatura en °F

    """
    return ((x-32)/(9/5))
CtoF (32)
from nbdev.export import notebook2script
notebook2script()<jupyter_output>Converted 00_core.ipynb.
Converted index.ipynb.
Converted Untitled.ipynb.
{'fraction_non_alphanumeric': 0.13653413353338334, 'fraction_numerical': 0.02250562640660165, 'mean_word_length': 3.95910780669145, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '350003', 'license': 'Apache-2.0', 'n_tokens_mistral': 515, 'n_tokens_neox': 490, 'n_words': 134, 'path': '00_core.ipynb', 'repo_name': 'v-ibarra/hello_nbdev', 'size': '1333'}