-
For example for scripts you can add them to the top of the # /// script
# requires-python = ">=3.12"
# dependencies = [
# "narwhals==1.22",
# "marimo",
# "anndata==0.11.3",
# ]
# ///
import marimo
__generated_with = "0.10.13"
app = marimo.App(width="medium")
... Is there a way to set the dependencies for wasm-html builds. I'm using the marimo-gh-pages-template build file to convert the python marimo file to wasm-html, but it doesn't seem to take into account the specified dependencies. |
Beta Was this translation helpful? Give feedback.
Answered by
mscolnick
Jan 20, 2025
Replies: 1 comment
-
In wasm, we currently don't pull the deps from the file header. We should/could, but the recommended approach today is to use micropip. import micropip
await micropip.install("anndata")
import anndata |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
srivarra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In wasm, we currently don't pull the deps from the file header. We should/could, but the recommended approach today is to use micropip.