3 ms·
Love this feature of UV. Here's a one-liner to launch jupyter notebook without even "installing" it: uv run --with jupyter jupyter notebook Everything is pu
by staplung 1y ago
Love this feature of UV. Here's a one-liner to launch jupyter notebook without even "installing" it:
uv run --with jupyter jupyter notebook
Everything is put into a temporary virtual environment that's cleaned up afterwards. Best thing is that if you run it from a project it will pick up those dependencies as well.
- laurent_du 1y agoI do this all the time as well with `uv run --with ipython --with boto3 ipython`. Great time-saver.
- slhck 1y agoNote that it's not really "cleaned up" insofar as there is a uv cache folder that will grow bigger over time as you keep using that feature.
- akshayka 1y agoVery nice. Here's a one liner for marimo notebooks: uvx marimo edit A one liner with marimo that also respects (and records) inline script metadata using uv: uvx marimo edit --sandbox my_notebook.py https://docs.astral.sh/uv/guides/integration/marimo/ https://docs.astral.sh/uv/guides/integration/marimo/