Notebook example#

This page shows that Mudkip handles Jupyter Notebooks out of the box.

import math

math.sqrt(7 + 63)
8.366600265340756

You can use the mudkip develop command to open the jupyter notebook in the docs directory.

$ mudkip develop --notebook
Watching "docs"...
Server running on http://localhost:5500
Notebook running on http://localhost:8888/?token=8549b18d...

For more information about how notebooks are handled you can check out the documentation for the myst-nb extension.

A few demos#

print(repr("Hello"))
print(repr("Hello"))
"Hello"
'Hello'
'Hello'
'Hello'
for i in range(3):
    print(f"{i = }")
i = 0
i = 1
i = 2
from dataclasses import dataclass

@dataclass
class Point:
    x: float
    y: float

Point(1, 2)
Point(x=1, y=2)