No description
Find a file
2025-12-27 13:05:59 -05:00
.gitignore Add a marimo example 2025-12-27 13:05:59 -05:00
cube.py Add a marimo example 2025-12-27 13:05:59 -05:00
justfile Add a marimo example 2025-12-27 13:05:59 -05:00
notebook.ipynb Add an example notebook 2025-12-27 11:41:09 -05:00
pyproject.toml Add a marimo example 2025-12-27 13:05:59 -05:00
README.txt Add a marimo example 2025-12-27 13:05:59 -05:00
uv.lock Add a marimo example 2025-12-27 13:05:59 -05:00

chadbook
========

minimal notebook boilerplate using uv.
supports jupyter and marimo.


install uv
----------

linux/mac:
    curl -LsSf https://astral.sh/uv/install.sh | sh

windows:
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"


run
---

    just run      jupyter lab (notebook.ipynb)
    just marimo   marimo editor (cube.py)

or directly:

    uv run jupyter lab
    uv run marimo edit cube.py


marimo cell output
------------------

marimo cells have two outputs:
- visual output: the expression BEFORE `return`
- cell exports: what you `return` (available to other cells)

example:

    @app.cell
    def _(mo):
        widget = mo.ui.slider(1, 10)
        widget          # <- displayed in notebook
        return widget,  # <- shared with other cells

if you only need display (no sharing):

    @app.cell
    def _(mo):
        widget = mo.ui.slider(1, 10)
        widget
        return

if you only need sharing (no display):

    @app.cell
    def _(mo):
        widget = mo.ui.slider(1, 10)
        return widget,