marimo

M

marimo

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

Join

help-support

archived-help-and-support

For the table widget, can we rename the column labels?

I am going through the documentation of the table element, and I am wondering can the column label be renamed? Or we must do that in a dictionary object first?
Solution:
i would change it from the data you have before passing it into mo.ui.table

How to distinguish marimo notebooks from any other python files robustly and efficiently?

If I want to get all marimo notebooks recursively inside a directory, what algorithm can be both robust and efficient?

Google Vertex AI

Is there a way for Claude from Google Vertex AI to be enabled? Not sure if I can get an api key for this as this is authenticated through a CLI and browser sign in for it to work in CLINE VSCode extension...

0.9.15 doesn't render custom index column of dataframe

Somehow, updating 0.9.14 to 0.9.15 breaks dataframe ui if dataframe is of custom index column, but to_markdown() works for both versions
Solution:
0.9.16 fixed the issue 🙂
No description

Receiving Error: Invalid Time

This morning I updated to Marimo 0.9.15 and now I'm receiving an "Error: Invalid time value" when trying to display an Ibis or a Polars dataframe that contains a timestamp column that is null. Here's some simple code that replicates what I'm seeing: ``` df = (...

Pagination size (custom range set)

CC: @tripleshot "does anyone know how to adjust the pagination size when working with pandas dataframes? it's stuck at 10 rows per page. I tried pd.set_option("display.min_rows", 20) but doesn't do anything and I can't find any docs"; message link - https://discord.com/channels/1059888774789730424/1179936876103225354/1303649800654159965

Reacting to external changes

Is it possible to make a notebook react to external changes? I would like to have a notebook that shows the status of an experiment and displays some analysis, but then to update it as the dataset changes. I don't mind if I have to write some code that runs in the background and notifies the notebook that a cell needs to be re-computed.

Issues with Leafmap widgets

I was having issues with getting Leafmap widgets rendering Choropleth maps to work in Marimo. In this particular example I rendered two Choropleth maps in separate cells which works fine in Jupyter - I converted the notebook to Marimo and initially one of the maps sort of rendered okay - but the moment I tried zooming in the rendered Choropleth polygons got out of sync with the Leaflet map they were overlaying amongst some other text errors before finally the widgets stopped rendering in Marimo altogether. I can provide the complete notebook if that helps. I used both from the same conda-forge Python environment with Python 3.12 on Windows and these package versions:...
No description

How do I get function signature information?

In jupyter notebook, when I press shift+tab on a function, I get info on the function signature i.e., the parameters it takes and the datatypes etc.) and also highlighting the parameter that I am writing at that specific moment. Is it possible to have that with marimo? Also, somewhat related, I know that marimo intends to keep the file strictly in python but I really miss the functionality of <func>? or <func>?? of jupyter in marimo. Typing help(func) in one cell and calling func from another cell is not so user-friendly....

Serving Marimo app with Apache2 reverse proxy?

Hi, just evaluating Marimo, and it looks very nice, but I'm trying to serve an app in a host that is already running an Apache server, so I was hoping to set a Reverse Proxy to Marimo, but so far with no luck. Is there some documentation out there to the right configuration for this situation?...

Something went wrong on dashboard

Hi all! While experimenting with a new notebook on marimo cloud I tried to play with the grid visualization. I got an error at some point and when I hit cmd + . (my bad for not taking a screenshot of the error!) I just got back to my regular source / app view. I just deleted the layouts directory as I thought it might have contained data that caused the error. After doing that, things stopped working i.e. I get a "Something went wrong" on https://marimo.io/dashboard/projects and cannot seem to be able to see my projects list. If I directly connect to my notebook's URL I can still load it, see the files list (which I could not access immediately after the error) and the layouts folder still there. Dashboard is still in went wrong mode though, even if I log out/in....

lonboard map display

trying to display a map using lonboard. I don't get an error, but also don't get a map display. Does anyone have any experience with this? My understanding is that lonboard uses anywidget to output a jupyter widget, but I don't know.

register data source / dataframe?

Say I have a python call that returns a dataframe. without assigning it to a variable within the notebook itself, is there a way I can register it as a data source? like from a module i'm importing? Example: ```python def run_agent(input):...

How to change layout orientation?

Basically I have two cases where I'm not sure how to change the layout orientation to match what I'm going for: * Dropdown with label on top, I've been able to workaround this by stacking a md on top of the dropdown but I'd prefer to consolidate if possible * Horizontal radio button layout basically I want the radio buttons to be laid out horizontally e.g., O select1 O select2 O select3 Are either of these possible?...

pre-selecting a table row

I'm wondering if there's a way to pre-select a table row, similarly to that of a dropdown or multiselect component?

should --sandbox with uv require manually reinstalling packages each time Marimo is restarted?

when running marimo edit --sandbox and installing packages with uv, i'm seeing a ModuleNotFound error and the missing packages pop-over each time the notebook is re-opened after marimo is restarted. is that expected? or should the packages be reinstalled automatically/persisted between runs? FWIW the package metadata is added to the top of the script...

pytest - best practices

I was wondering what the best practices are related to pytest. I can't run pytest.main() within the marimo notebook (error); and running it in the command line is not working neither (I guess I would have to export it into a classical python file first. Is there a recommend best approach to run tests?

help with project

I am currently made an application in marimo for indeed job posting job search information and I trying to create a docker instance of the app but not getting the same results as in my notebook. here is my code that is working. the issue is it is not showing any of the app outputs for the charts that i am seeing in my notebook. also think that my start button is not working as I attend it to. (user press start to submit text information above....

DataFrame as Tool

Is there a way to make just a dataframe as tool for the chat interface? This is a bit different than the filterer version from the blog.
Next