marimo

M

marimo

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

Join

help-support

archived-help-and-support

Shift enter not working from time to time

Hi team, from time to time shift enter (run and new below) is not working. Not sure what is causing this and how to solve it. On the other hand, ctrl enter works all the time.

Import from a different project

Is it possible to import stuff from one project to another on the marimo.io dashboard?

Using the sandbox

I'm trying out the sandbox for the first time, and I'm getting this error
No description

Hide code in a notebook in a Collection

I have a collection of notebooks in the marimo.io/dashboard/... and I would like to either hide the code by default or exclude it. So I would like a ntb to open as marimo.io/p/@kejtos/slug?include-code=False (or ?show-code=False) when someone opens it at marimo.io/c/@kejtos/collection_name. I have tried various things in the settings, but I have not been able to figure it out. Thanks.

Label widget placement

Hello everyone, is there a way to have the widget label above the widget instead of on the left? When putting
.flex-row {
flex-direction: column;
}
.flex-row {
flex-direction: column;
}
in a custom css, it doesn't work. Thanks...

highlighted elements in markdown

This is moreso for my understanding of the syntax, but the elements for the unordered list lost their color scheme after I closed the first sub-list
No description

Keep ui table state of selected rows

Is there any way to keep the state of selected rows of ui table which is part of the items in accordion (or tabs)? The table always get re-rendered on switching between items, thereby losing the state of selected rows of the table

pyodide installation through uvx sandboxing fails

Was "sanboxifying" a notebook with uv (for inline dependency scripts); the notebook just had pyodide as it's main requirement (this is the Post Approval Study Recommender notebook shared by Mustjaab; on clicking the install button (with the popup on the top left), it seemed to fail. This is whta I got in the terminal: "ValueError: Pyodide is a Python distribution that runs in the browser or Node.js. It cannot be installed from PyPi. See https://github.com/pyodide/pyodide for how to use Pyodide."...

Altair performance questions

Hi team, thanks for your work on this package. Apologies for the dumb question, I have been using large datasets and used altair for dynamic plotting with slider filters. Using on jupyter: alt.data_transformers.enable("vegafusion") alt.renderers.enable("jupyter", offline=True), this is very fast (less than 1 sec for the update). I tried to achieve the same filtering using marimo sliders directly on my polars dataframe and then plotting, this works but it is slower as obviously polars needs to do the filtering and run 2 cells (2-5 seconds)....

Sorting tables elements that are not fully strings, floats or ints

Hi. I'm looking to sort tables that contain values which are numeric, but to help the user, I want to add a colorbar in the cell. Because I do that the elements can no longer be sorted. Is there a workaround to allow the cells to be sorted still? I would rather that, than placing colorbar in a separate column. This goes for any type of composite type of cell really. It would be great if you could still sort (given some condition that is sortable).
Solution:
Not currently. I would suggest another column. You could try: 1. Custom format_mapping. Keep the value the same, but add the color in the format function: ```python...
No description

marimo restart API

Is there a way to programmatically restart marimo session? I have an iterative control flow logic using a SparkContext. In order to release cluster resources I figured that periodically restarting the kernel works. Currently i do this manually by page reload and clicking the “reload” UI button. I am looking for official marimo api/sdk way to restart the kernel....

Kernel keeps crashing / change cell to code shortcut

Hi, I'm new here. When inside the tutorial notebooks (didn't try my own notebook yet), Marimo kernel keeps crashing. "ConnectionResetError: [WinError 10054] an existing connection was forcibly closed by the remote host" a few times and then SystemExit. I'm running on windows 10, with python 3.9.13 in a poetry env. I cannot paste much as this is happening on my work computer. Thank you for your help!...

redirect_stdout and print statements from threads

Hello, thanks for your fantastic work. I would like, in run mode, to show logs from a multithreaded library that emits logs from different threads, but can't manage to make it work with redirect_stdout. As the library is handling long running tasks, it is useful for the user to have a dynamic display of the progress. I have attached a small file to reproduce....

Been trying to message in mo.ui.chat

I'm unable to enter any text/type in the mo.ui.chat chatbox area; I can however add default prompts and after they appear in the chatbox text area, I'm able to edit the text. I'm on:
>>> marimo --version
>>> 0.9.7
>>> marimo --version
>>> 0.9.7
...

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