marimo

M

marimo

Join the community to ask questions about marimo and get answers from other members.

Join

help-support

archived-help-and-support

sandbox with multiple notebooks

We run marimo in a docker container using the following command:
marimo edit --sandbox --no-token -p $PORT --host $HOST
marimo edit --sandbox --no-token -p $PORT --host $HOST
Works fine and we have a folder mounted with several notebooks, which have script metadata, per PEP 723....

marimo+uv workflow

I just tried uv run --python 3.11 --with marimo --with numpy --with matplotlib marimo edit --sandbox hi.py the equivalent pattern for jupyterlab would be uv run --python 3.13 --with jupyterlab --with numpy --with matplotlib jupyter lab but now I'm wondering:...
No description

issue with plotly express chart not registering change to switch

I have a plotly express scatter_mapbox that displays different values (a complete or filtered dataframe) based on the value of a mo.ui.switch. For some reason, the chart does not re-render on switch value change; instead, it is toggling after I toggle the switch and then switch the view mode of the notebook (i.e. use the toggle app view button). This is the notebook in reference: https://marimo.io/p/@roboboosters/fin-frc

Adjust chat height

Can I style a cell so that the entire chat is visible? ```py import marimo as mo Define a simple echo model function def simple_echo_model(messages, config):...
Solution:
there is an expand icon on the right-hand side of the cell output (below the fullscreen icon), that will expand to the height of the output
No description

Zsh command not found

Trying to learn marimo however after installing when trying to open the tutorial I get zsh command not found. I am using ubuntu on wsl. marimo tutorial intro zsh: command not found: marimo...

Clearer loading signals on apps (marimo.io/p)

When sharing a presentation or app, it is unclear if the app is still loading, or how much of it is loaded. This is a problem if you are sharing the app with someone who is unfamiliar with the platform. If it's taking a while, content might appear to simply not exist or be missing. There's also a bit of a delay upon initial page load of the app and presentation. After the "loading dependencies" spinner, there's a gap between that and the hour glass spinner in the top left....
No description

SQL <> Python cell auto-conversion

problem: I was attempting to solve this issue and found that cells were automatically converting to different cell types. Auto conversion from Python --> SQL * To mitigate some downstream dependency issues, I first tried converting the SQL cell to python (e.g, "df_result = mo.sql(f""" query """)") , and then would save the file, and then reset the Kernel. Post kernel reset, that cell that I converted to Python was back to being a SQL file. ...

SQL cells outputting data frames fail to work in dependency tree

Hello! Problem: Following a kernel reset and full auto run, my SQL cells (not python cells) outputting a dataframe fail to work causing downstream execution issues. ...

How can I use wasm (compile, host.. etc.) without using marimo.app?

I would like to run the wasm app on my own outside of marimo.app. Can I compile and host it? is there a guide on how to do that?

Is there a way to have a button with an image overlay? In other words, a clickable image.

I want to show a few images to a user and have them select images by clicking on them.

HTML Export Options

I'm really enjoying working with marimo, but I've been finding it tricky to conveniently share results with different audiences via html (some like to see the code, some are terrified of it and just want a clean looking report). When using 'Download as HTML' or the super-convenient 'Auto-download HTML' from marimo edit, it would be good to be able to specify the following options: 1. Code cells collapsed by default. 2. All code hidden (basically app view)....

GitHub Copilot unable to connect

In settings, when I try to use github as a provider, it just says unable to connect. I have installed the latest version with pip and also have node.js installed. Can someone please help? I am running marimo on a remote server with either VSCode and port forwarding.
No description

VS Code - marimo does not start

New marimo install, trying to open a marimo notebook, the window sits on "Loading..." and the running notebooks pane activity indicator keeps scrolling. 1. Install marimo extension in VS Code 2. pip install marino 3. restart VS Code...

Searchable drop-down?

Hi everyone, I have the following ui element: ``` person_selection = mo.ui.dropdown( options=dict(df.select(['name_full', 'person_id']).iter_rows()), value="John Smith",...
Solution:
Yea -- can you try mo.ui.multiselect? That lets you type into it: https://docs.marimo.io/api/inputs/multiselect.html#marimo.ui.multiselect

Best Practices for Caching Marimo Reports?

We run an internal reporting application that I would like to speed up significantly. The flow of these reports are all pretty simple: 1. Pull Data 2. Run a bunch of calculations 3. Build visualizations...

mo.ui.altair_chart(chart) is not updating based on filtered data

I am creating a simple Altair bar chart, want to update it based on a filtered data but it is not getting updated. here is the flow of my code:

Altair Charts not adapting to dark background

I feel like this should just happen automatically, but if I try to go dark mode, my altair charts all get wonky. I expected I would get a dark background in my chart by default and my text would change to white.
No description

how to disable “defined by another cell” error?

While experimenting and testing models - I usually reuse some variables from cell to cell. For example, when training models - I can set device variable to cuda for better coding experience. device = torch.device("cuda”) And when I want to use this model later in the same notebook and leave GPU for another processes, I’ll do:...

Accessing session cookies from marimo

Hi. Is there a way to access the session cookies in marimo?

private imports inside one cell

I tried to do such code ```python3 import subprocess as _subprocess import os as _os...
No description