Get help from the marimo community

I am trying to make it so I can export a report I built in Marimo to static HTML so that the report is pre-computed and can be displayed on a separate Marimo application. Part of this report goes into a deep dive analysis of specific variables. Currently the report runs on the app so its easy enough to use the dropdown to choose which variable to dive into.

The report however, is very compute intensive, and it would be nice to run the report beforehand and just show the HTML from it in the app. However, in static HTML, the dropdown doesn't work due to it requiring some python code to run. I am trying to find an adequate workaround for this. I attempted to use tabs, which actually worked magnificently, except for I have too many tabs to fit on the screen. The carousel also almost works, however it is not user friendly to have to scroll down in the carousel to see the full deep dive.

I havent messed too much with WASM stuff. Not sure if you can run the WASM html inside another Marimo app? My hope is that the main Marimo app just shows a list of reports that have been generated and can load the selected HTML report. So I am not sure if that is possible with the WASM export. Something that looks like the dropdown but acts like the tabs would be ideal at this point. I know I could generate a large accordion if needed as well, I just don't love the way it looks as much as something like the tabs. But thought I would check and see if there was a more elegant solution to this?

Thanks!
Is there a way to format tables so that the width of different columns can be adjusted?
7 comments
M
j
Hi everyone,
Sometimes during exploration of data, seeing null values matters. In the above example, I would like to see them explicitly, the same way it's rendered in the 'plain' output. Is that possible ?
Thanks a lot for the great job on marimo
5 comments
e
s
exporting notebook to wasm
$ uv tool run marimo@0.10.2 export html-wasm apps.py -o wasm --mode run
serve it on python http server, after loading the index file, caught
This cell raised an exception: FileNotFoundError('[Errno 44] No such file or directory: 'data.csv''

does wasm export support reading local file?
7 comments
M
l
m
I'm experimenting with deploying my notebook on GitHub Pages. However, the documentation around this feature seems to focus on local notebooks, not those already deployed in the Marimo WASM Playground. What steps would I need to take to export the notebook from the Marimo WASM Playground to move it to GitHub Pages? I used "Download as HTML (exclude code)," but that appears to be static only.
2 comments
M
the image shows a reactive plot with temperature, humidity, and vpd readings from a sensor. When i click on the vpd bubble, ideally the scale would change from 20-100 to 0-2. I have not found a way to do this, no matter how many times I play around with the on_change callback. Is this possible? I was thinking of using the Y2 for vpd, but the chart looks messy. There is probably a better way to visualize all these sensor points. Advice/thoughts appreciated.
What's the best way to handle race conditions? For instance, if I have a component A that B depends on, but C depends on A and a state that is set in B. How can I ensure that B is updated before C is updated, since the state update seems to hide reactivity
5 comments
A
j
Hi! I've been exploring integrations with the ASGI mount. I keep hitting issues when trying more complex scenarios than the intro docs / examples.

It's hard to debug and introspect because a lot is bundled together, so I'm looking for some details:

  • what is bundled via create_asgi_app() and what is required for the app to run? (e.g., do I need user_config_manager?)
  • I found marimo._server.api.router.build_routes() but what is required / optional?
  • handling file paths when mounting is challenging (cwd for launching the server vs. main app dir vs. marimo ASGI subapp dir vs. marimo notebook path)
  • the redirect feature from create_redirect_to_slash() adds misdirection and should be opt-in
  • one potential source of challenge is the marimo app bundles HTTP, Websockets, and static files routes, but they might have different mount requirements for the main app (e.g., middlewares, conflicting paths)

solution

have a "core" ASGI app or set of routes with minimal features (no middleware, no LSP, no redirect) for developers. This would be in addition to the current "full ASGI app" that's more user-friendly

I really tried fixing this myself, and I'm willing to contribute, but would require some guidance on how to approach it
5 comments
T
M
Haven't successfully been bale to convert a Jupyter Notebook yet.
1 comment
A
I'm trying to deploy marimo using a docker image on kubernetes but when I have two pods running at the same time, I recieve an "Error to instanciate" due to "Invalid session id".
Have somoene succeeded to scale Marimo horizentally?
3 comments
A
T
H
I wrote a marimo notebook that walks through setting up a (Anthropic) mcp (model context protocol) client. It requires importing mcp. mcp uses pydantic which uses rust so i guess the playground is out to post? Is it appropriate to post in the Gallery? Or where can we post these notebooks if not in these places? Thank you.
7 comments
M
H
Beginner here. I would like to submit batch image prompts to an API and get back the resulting images for preview locally in a browser. There are other tasks to do in the same notebook, but this is the first one I would like to try to automate.

Before going down this path, is this a job for Marimo? I am aware of stuff like Pipedreams and N8N but do not like these toys. Would rather just write a Python app (been a long time) than use those no code tools.

Then yesterday I discovered Marimo. Is it worth a try to automate my desktop this way?
3 comments
A
S
Can I add code to a cell that, when executed, is equivalent to clicking the "Expand output" button on the right side of the cell?
13 comments
A
C
M
Is it expected that it doesn't work in a WASM notebook?
4 comments
M
R
Did anyone run into this error when using mo.Thread? Any clue about it?
2 comments
M
b
Do you recommend using a global marimo installation or a per-environment marimo installation?
4 comments
M
l
J
Hi, playing around with marimo the last few days and loving it! I was wondering if there is a way to disable a button after it's been clicked once? I tried to get the button's on_click function to set the 'disabled' param to True after the first click, but that doesn't seem to help.
https://docs.marimo.io/api/caching.html

Or would I need to turn it into a python cell then run it?
1 comment
l
Hello. Is there a way to change the description and the favicon on the app today?

I'm actually considering putting it in a fast API app, so I guess I could override it there with a middleware potentially, but... I don't know if maybe there's a configuration option I can do, that would be a little simpler to start out with.
11 comments
M
M
My first use case for Marimo is for publishing maps created with Leafmap and I'm so close to what I need. I set the notebook width to full which gets me close, but I'd like to use the full extent of the webpage viewport. How might I accomplish this?
5 comments
A
C
I couldn't find an answer to this in the docs, sorry if I missed it. Is there a way to turn off the "Download as HTML" option when you are running the notebook as an app?

I'd strongly prefer my users not be able to do that.

Turning off all the download options is OK too. I guess that I could add custom CSS that disables it. But if there's a configuration option, that would be nice.
4 comments
M
M
This may be a silly question, but can I add a module with my custom scripts/functions from my local working directory and then reference these python files in the marimo notebook? I currently get a "no module found" / "missing package" error when I add

from local_folder.my_python_script import my_function

What would be the best way to do this?

The problem I'm trying to solve is to not have to copy the same functions into my notebooks, but have the base functions as in import into my notebook.

Could I use UV to build a package out of my base modules, and then use UV to install from a local wheel file? I don't know how to do this (in UV or in general), so any tutorials or links would be helpful.
7 comments
A
b
I know this isn't a uv community but the marimo one but I know there are a lot of big uv fans here. I am little confused about some elements of uv, can somebody enlighten me please?

https://github.com/astral-sh/uv/issues/9219
1 comment
l
I want to build a set of “nested” drop downs, where the choice in the first level determines the choices in the second level, etc. any suggestions for how I might go about doing this?
13 comments
M
A
A
l
When I run
uv run marimo edit subfolder/hello.py
and then type

Plain Text
import os
print(os.getcwd())

I'll get
Plain Text
/Users/jan-hendrik/projects/okapi

without the subfoloder.
Therefore my question: Is there a way to start marimo, so that the python cwd is directly in the subfolder?
3 comments
J
M