-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for packages outside of the Pyodide list for wasm/github pages #3859
Comments
The wait time would be roughly the same. You either need to load the python files from GitHub or load them PyPI. It all runs on the client's computer so it all gets downloaded to the client's computer. In fact, with PyPI, there would be better caching because it has propper versioning. |
Gotcha. I think it would be preferable to load everything from one place on the github page. Also, after loading the html page from github, is it possible to run the whole thing offline? If everything is downloaded to the clients computer. |
|
Oh I see, I misunderstood then. Is there any future plan to allow wasm-Marimo to run offline/to be self contained? |
No plans currently |
Sorry so what is the current method then to include things like ipywidgets or packages not included in Pyodide when deploying on github pages? Is it with micropip? |
You can:
|
For #2 When you say /public directory, do you mean that you could essentially download the whl's that you need in your project from pypi and call them using micropip? Bit confused on that part. Is this in the documentation? |
yes, its documented here: https://docs.marimo.io/guides/wasm/?h=public#including-data it talks about in the context of data, but you can also put python wheel theres. and follow the micropip documentation: https://micropip.pyodide.org/en/stable/project/usage.html#examples |
Description
Hi there, I'm running into an issue where I have a few packages in my notebook (ipynb) that are not included in Pyodide (namely ipywidgets).
I realize marimo is supposed to replace ipywidgets, but there are cases where cross compatibility would be useful, such as in my case.
As I understand it I can convert my ipynb into a marimo .py and then host this on github pages using WASM.
Ideally if it were possible to pre-pack any third party (pure python) packages via PYPI along with the notebook when deploying to github pages this would be hella useful to me since I can't proceed due to the limits of Pyodide.
There are a few smaller packages that are crucial for my notebook, that likely wont be added to the Pyodide list.
Suggested solution
Pre-pack all the packages with the notebook (not sure how) I know the current method is using micropip in Pyodide to install packages upon opening the notebook, but this would not make sense in terms of wait time/nor with github pages.
The text was updated successfully, but these errors were encountered: