Using one marimo installation with multiple environments 🐶 #2994
liquidcarbon
started this conversation in
Show and tell
Replies: 2 comments
-
Patching Jupyter executable in this manner is not that simple, so it's much easier to use Start using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here's some more hackery - using
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
marimo + puppy = 💚
This is a recipe for structuring your marimo projects for multiple environments using a package manager I developed called puppy.
The same approach will work for Jupyter.
Puppy is a CLI wrapper for pixi and uv.
The TLDR of puppy:
pup add
commands to build virtual environments defined bypyproject.toml
files with uvpup.fetch()
to "activate" the venvs from any interactive shell (python, marimo, ipython, jupyter)Let's build
Suppose you're trying out some cool new anywidget tools that you plan to use with both marimo and jupyter.
curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash
output:
output:
newenv
and install tldraw:output:
newenv
, patching it with pup.fetchAlternatively, just run main marimo
pixi run marimo
andpup.fetch
inside the notebook. This will work the same in marimo and jupyter - no need to mess with kernels. You can fetch more than one venv or build reproducible environments on the fly:pup.fetch("anotherenv", "awswrangler", "duckdb")
Output:
Done drawing? try another one
Now drawdata venv is active, and, as expected, tldraw is not there.
Beta Was this translation helpful? Give feedback.
All reactions