Multiple levels of dropdowns
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?
current working directory when python file in subfolder
When I run
uv run marimo edit subfolder/hello.py
and then type
```py...intro.py
should a hint be included at the top of intro.py
that the entire notebook has been "run already", and to "watch out for yellow highlights on the cell play button"...
marimo tutorial intro
marimo tutorial intro
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
can marimo integrate with ipydatagrid ?
the new
mo.ui.experimental_data_editor
is super cool, but it looks like Bloomberg has released a pretty feature-rich editable table:
https://github.com/jupyter-widgets/ipydatagrid
I was wondering: can marimo embed ipywidgets?
and can it run them interactively?...Debugging / stacktrace in chat application
I am looking for instructions on how to debug some code that is run from a mo.ui.chat box. I get error messages (example pasted), but no stack trace or similar that could bring me closer.
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 🙂
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:...
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?...