Get help from the marimo community

Hi, quick question possibly dumb question, on the latest update 0.10.10, does enter creates a new line in insert mode ? It doesn't seem to do it anymore for me. Thanks!
4 comments
A
M
Hi everyone,
Here’s what I want to do:
I have a list a = []
I also have b = mo.ui.text().
I want a to keep appending b.value every time I enter new text into b.
The only working solution I’ve found so far is using mo.state().
I’m wondering if anyone has a better solution that doesn’t require mo.state().

Thank you! 🙏
1 comment
S
I am trying to serve marimo apps on a company server (python, not webassembly).
I have fastapi working fine, but I am running up against a problem with imports.

Originally I thought the sandbox imports would work, but it looks like this is not the case (I found a message on this discord).

That leaves a few options to solve the import problem:

  • use mo.install() to somehow pull in the sandbox imports? But if all the apps are in the same marimo process does this create conflicting imports? Also how would I read in the imports?
  • use marimo run --sandbox and have each app have its own process and port that i have to forward to
  • use a global uv environment for all apps and keep it synced across apps somehow. This will eventually lead to conflicts.
Obviously my preference would be something where i can just have one marimo fastapi app,
but I am not sure what the best way to achieve this is, while keeping apps sandboxed.
Generally each app will have many imports.

Thanks for any advice!
4 comments
M
b
How come some cells have a fullscreen button on the top lefthand side, but some don't? Is it generated based off a heuristic or something?
2 comments
t
M
For example, given
Plain Text
src/my_proj/processors/simple_processor.py
notebooks/nb1.py

I'd like to set the project root as src/proj and, from notebook nb1.py, import
Plain Text
from processors.simple_processor import SimpleProcessor
3 comments
M
A
Is there a way to let two elements align in a way that jusfies both left and right hand side of the composite component? Currently, I get something like this. But I would like to extend the elements sides so they match:
4 comments
H
M
j
A
I have been using an online tool called Desmos to investigate various mathemetical equations in the last year. This has been very useful but runs into some issues when examining computationally heavy expressions (e.g integrals, etc).

For that reason, I wanted to look into more performant options, and Marimo seemed like an interesting option to play with this idea. I was wondering, though, if anyone would know whether achieving a smoothly varying plot is feasible in Marimo?

Here is an example of a smoothly varying plot: https://www.desmos.com/calculator/4dkhcbjost

My hope is that I can use Sympy along with Marimo to achieve this, but I am still ramping up on Marimo basics before I try it, so figured I'd ask in the meantime.

Thanks!
3 comments
G
O
Hello there! Super glad to use this underrated feature (much easier to get started than jupyter!). I have this situation, where the plot is a bit small, even in fullscreen. How can I make that bigger?
3 comments
M
l
was wondering what would it be the ideal way to use uv with marimo
should i first create a uv venv & inside create project then inside install marimo or
should i just create a uv project & inside install marimo
I would like to inlcude a feature in my notebook where a user imports a csv and it turns into a dataframe. I'm using mo.ui.file_browser. Is there a way to extract the filepath from FileInfo?
1 comment
S
Hello, I've just discovered the experimental data editor function. I'm wondering if it's possible to have a data frame that contains a column with editable cells and another column that updates automatically according to these values (this column may or may not be editable)? df.value only displays the values but doesn't allow you to edit the cells.
2 comments
M
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!
8 comments
M
n
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.
5 comments
M
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