marimo

M

marimo

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

Join

help-support

archived-help-and-support

Controlling table column width

Is there a way to control table column width, so I don't end up with loads of white space around the selector? I want to keep the selector, but dont need to split 50/50 here when there's only one column:
No description

Memory Leak

See the attached code. If I assign a large numpy array to a cell-scoped variable, then after the cell is done running the memory is still occupied (about 7.5 GB). If I rename the cell-scoped variable and rerun, then the old memory still remains occupied and a new, large chunk of memory is allocated (so now taking about 15 GB).
No description

Hiding Output

I remember there used to be a way to hide cell output, or like disable it. Can that still happen?

Interactive plots with Plotly

I'm looking for a way to generate a plot based on a plotly canvas. I want to create a surface, by clicking on the canvas so that vertices of that surface can be defined. Later, I want to extract the vertices, to be able to fine tune them in my UI. Is that something I could do with Marimo?
Solution:
For mo.ui.plotly_chart, the only interaction we support out-of-the-box is selecting groups of points. See the docs for a demo/usage: https://docs.marimo.io/guides/plotting.html#plotly

Delay in code completion making it not so useful

I've had this problem since I connected my GitHub copilot with Mario. There is a slight delay in the autocompletion, and often, it results in an autocomplete that is kind of useful but I have to fix. The problem with parenthesis you see in the gif occurs very often. I was wondering if this is just me and how I could go about fixing it. Thanks!
No description

implement increase max output

How am i supposed to increase my max output? I tried setting the variable through both marimo and through a terminal and it didnt do anything. I am setting the variable to 500mb
Solution:
you need to do it through the terminal, and then re-run your notebook from the same terminal (export VAR only lasts per terminal session)
No description

Relative Imports

I'm having trouble figuring out how to do relative imports (I'm not too familiar with Python modules). My folder structure is: /notebooks -- /public...

cant hide polars config text

very annoying that I can't hide <class 'polars.config.Config'>
Solution:
You can put “None” at the last line
No description

dark mode is only enabled in the marimo edit mode, but defaults to light mode when I run as app

How to enable dark mode in the marimo app?
Solution:
if you run marimo config show, it prints out where it is. you should include, with your dockerfile a .marimo.toml file with the contents
[display]
theme = "dark"
[display]
theme = "dark"
...

create a single slider line with two slider points

I would like to have a second slider point so that I can define a range based on a stop and start slider. Currently the default min range seems like it can only be set at the start slider....
Solution:
Drive-by, but we do have a range slider:
No description

only thing that every gets rendered is the markdown.

cc @Mathias Hi team, when I run "marimo run", the browser opens up but the only thing that every gets rendered is the markdown. Any ideas why? I can see the cells run successfully in the console, though....
Solution:
print statements don't show up in the app view of a notebook. If you want them to, you can use mo.redirect_stdout(): https://docs.marimo.io/api/outputs.html#marimo.redirect_stdout

update the dataframe charts in the explorer based on the filter

I notice that the charts only update based on the slider information. FOr example the isSlash chart is very wrong and won't update when I try to filter for block_number column values like in the second picture. Is this a feature or a bug?...
No description

copy dataframe row values

The text is truncated and I am unable to copy the entire dataframe string value
Solution:
You can double click to select and copy - browsers will give you past the ellipsis
No description

marimo export html with CLI args (poetry bug)

@nellyg moving our discussion here. What version of marimo are you using? I can't reproduce your issue on the latest version....

dataframe size

is there a way to increase the dataframe columns shown size and the charts for 'vertical' view?

binary conversion

also I think I Need some help here/might be a bug. I have string hashes that look like something like this 0x0301edd00c61acef95df15455de7... however marimo dataframe keeps converting it into (binary?) numbers. Is there a way to stop this seemingly automatic conversion from happening?...

running marimo on modal

I actually posted this to github discussions, so apologies for double-positng. I think this is probably a better forum for this question... (Happy to delete the github one if that's helpful) I am trying to get marimo running on modal, following https://docs.marimo.io/guides/deploying/programmatically.html and https://docs.marimo.io/guides/deploying/authentication.html The following code works, up to the point of giving a 401 for /api/kernel/instantiate...

Can you load an ESRI shapefile in a marimo sql cell?

I'm getting a ComputerError when i Trey to create a table from an ESRI shaepfile. CREATE OR REPLACE table piers AS select * from './data/in/gis/OneDrive_1_19-08-2024/OutlineGeofence.shp';...

Anywidget not displaying correctly

I'm using the ipyaladin (https://github.com/cds-astro/ipyaladin) based astronomical sky survey viewer, built on anywidget and it is not displaying properly, with the icons for the GUI below the image when displayed in Marimo. In the screenshot attached, I've zoomed out within the browser to 30% to show the buttons. The region to pan and zoom in/out for the image is below region where the image is displayed. Is there something I'm doing incorrectly from Marimo's side, or is this a problem I need to figure out with the devs of ipyaladin? I'm using the latest version of both ipyaladin (0.4.0) and marimo (0.8.2). Code to reproduce ```python import marimo...
No description

Install dependencies in wasm playground?

Maybe I just can't find the UI, but is it possible to install dependencies in the wasm playground?