human
$\LaTeX$ Section Names
Oh yeah, you can do $\TeX$ inline with dollars or as equations with double dollars.
$$x^2+y^2=z^{x+y}$$
Rich Objects
You can define rich representations of Python objects.

Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
class Fancy(object):
    def __init__(self, text):
        self.text = text
    def __repr_html__(self):
        return "<h3>{}</h3>".format(self.text)

Fancy("Nathan")

import numpy as np
maxtime = 3
f1 = 220.0
f2 = 224.0
rate = 8000.0
L = 3
times = np.linspace(0, L, rate*L)
signal = np.sin(2*np.pi*f1*times) + np.sin(2*np.pi*f2*times)

from IPython.display import Audio
Audio(data=signal, rate=rate)