marimo

M

marimo

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

Join

help-support

archived-help-and-support

Install dependencies in wasm playground?

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

Marimo Islands dark mode?

Having trouble getting marimo islands to work in dark mode. The src code in useTheme.ts suggests the way to achieve this is using a "dark-mode" class in the island body, or specifying data-theme=dark in the island tag, but I haven't had any luck with either of those methods.. Any other alternatives? styling with global css seems futile too, since it's inside a shadow DOM...

Using Marimo for package documentation

Hey all, I'm pretty excited about this new framework! I'm thinking of a way to build docs for my python package and I thought of trying something new - perhaps building an interactive documentation using marimo. This will also allow me to communicate back and forth with an LLM like Claude. Jupyter notebooks don't allow that in a straightforward way. I have a few questions:...

Undesirable line break in inline math mode

HI guys, I am trying to write a report where I need to use math. However, I am getting a problem: when I introduce math inline the output creates a line break as it was a full math block. Example:...
No description

Putting draggable objects on a plotted 2D array using plotly

Hi, I've just started using plotly and want to play around with the interactivity, but I cannot find a lot of information on things like 2D plots. How can I make a draggable object (e.g. a rectangle) that the user can move around on an interactive 2D plot? I would like to e.g. sum the pixel values inside the draggable shape. Thanks in advance!...

Strange behavior when using allow_self_loops=True on states

I have a state that I use to redraw some UI component, using a dropdown selector that sets the state on it on_change handler. But for some reason, marimo throws an error. The error code is not very useful as it seems to be all marimo internals.
No description

I have an open_ai api key but what is the format for adding it to .marimo.toml ?

I have an open_ai api key but what is the format for adding it to .marimo.toml ?

cell bookmarks

Does marimo have "jump to cell" bookmarks? (that can be used from markdown or mo.md(f'''Jump to {target}... ) Or a table of contents widget?

Output too large

Following up from #general. @Sonali can you share more information? What are you outputting and how did you set the environment variable?

How to use a set_value function when using anywidget?

In JupyterLab I can use a simple CounterWidget with anywidget like this. ```py import anywidget import traitlets ...
No description

Error with duckdb

After the first couple runs of anotebook with SQL, it becomes unresponsive, and I get the attached error.
No description

jupyter-marimo-proxy issues with kubernetes deployed jupyterhub

Hi all! First of all THANK YOU for a wonderful new computing experience! Marimo is what my team and I have dreamed that our notebooks could be! I'm not sure if this is the right forum to ask, as its more jupyterhub related, but thought I'd give it a shot anyway. To offload heavy computations my team and I have deployed jupyterhub using zero to jupyterhub, I looked into the jupyter-marimo-proxy to get a similar workflow we've used for our pluto.jl notebooks, but Im running into issues. Deploying and testing locally on minikube works just fine, I can open marimo from the jupyterlab launcher and write and execute notebooks. When deployed on our k3s cluster on our servers though we run into errors like the ones attached....

Running marimo with the 3d image viewer napari?

Hi there! I was thinking of running marimo with napari. In a classic notebook in VS Code, I can simply run ``` pip install "napari[pyqt5]"...
No description

BSOD when running python code block

I'm encountering BSOD after running simple code. After creating a new notebook, a simple print command is enough get a BSOD with different messages. This is repeatable and after trying couple of times, I seem to get driver irql not less or equal BSOD message most often. Before marimo I haven't had any BSOD-s with that specific computer. ...

Store output of function called on button click

Hi, I'm using a button to call a function that returns a tuple. Is there an existing attribute of the button to access the 'on_click' output? Didn't see anything in the docs.
Solution:
There are a few examples of accessing the values of the buttons in the docs: https://docs.marimo.io/api/inputs/button.html#button You may also can use mo.ui.run_button which can lazily process downstream cells: https://docs.marimo.io/api/inputs/run_button.html#run-button...
No description

programmatically interact with marimo

Is it possible to interact with kernel directly in a programmatic way without going through the UI? I want my python backend server to be able to add, remove and edit cells, get state, get dependency/DAG structure of a notebook. TY...

Best practices for deployment?

I have seen a few threads discussing deployment of marimo apps, e.g. on AWS. Are there complete examples that I could learn from? Any pointers would be appreciated! For context: I have created multiple marimo dashboards, and would like to share them with the rest of my team. (They are currently private, e.g. I don't want to share them with the rest of the world.) They are not resource intensive, and I could easily host them on a single server (perhaps dockerized, and routed via nginx?). A starting page that lists the available apps would be useful, too. Maybe others have solved this problem already? (Or perhaps something akin to Shiny Server in the R world is already in the works somewhere?)...
Solution:
We don’t have a comprehensive doc on deployment yet, but as people find what works for them we’d happily accept contributions to our own docs: https://docs.marimo.io/guides/deploying/index.html

Hosting on AWS?

Is it possible to host a Marimo Notebook from AWS?
Solution:
We have many guides on deployed to various platforms, one includes how to dockerize your application which will be the first step to deploying on AWS https://docs.marimo.io/guides/deploying/index.html...

Helper Panel -> Files: Changes not reflected

When using the WASM playground, changes to the file notebook.py via the Helper Panel -> Files are not reflected in the app window and vice versa. I would have expected that both stay in sync. I am not sure what the desired behavior should be. Who could help me out?...

Google Tag Manager on Marimo

To install GTM on a webpage, the following code needs to be injected just under <head> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],...