Replies: 1 comment 2 replies
-
Short answer is no. And its not always possible. Each pyodide version comes with a lockfile pointing to a set of versions but they are pinned (and not a range), so you are somewhat* forced to use their versions: https://pyodide.org/en/stable/usage/packages-in-pyodide.html *I say somewhat because you can host your own pyodide lockfile (differs from uv and other package managers) that points to versions you use. The problem is that you will need to generate this lockfile which isn't that easy from outside pyodide. We do want a seamless local python <> browser back and forth, so I can think of some solution that may help. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note I am aware that this question might be completely misconceived because my understanding of a lot of the clever stuff that marimo-WASM-pyodide is doing to make any of this possible is somewhat limited!
Really enjoying using marimo, which for me fills a particular need to develop a web interface to a small library I've been working on.
One thing I am running into which is confusing me and making debugging difficult is that the versions of python wheels that the marimo CLI in notebook editing mode will install diverge from the versions that a running app on the web will pull from pyodide, sometimes quite widely. This might not be the reason I see errors on the app that I can't reproduce locally, but it's a source of uncertainty and confusion, and it would be nice to be able to force the CLI editing mode to better replicate the app experience.
I've tried using
marimo edit --sandbox my-app.py
but have noticed that this only controls the versions of package explicitly imported by my code and not the secondary dependencies. In my case that leads for example to numpy 2.2.4 running in the CLI while on the web my app only gets to work with numpy 2.0.2!So my question: is there a way to force CLI
marimo edit my-app.py
to pull only versions of packages that the hosted running app will have access to from pyodide?Beta Was this translation helpful? Give feedback.
All reactions