marimo

M

marimo

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

Join

help-support

archived-help-and-support

JavaScript in mo.Html

``` <div id="message">Click the button to change this text.</div> <button onclick="changeText()">Click Me!</button> <script>...

reading from csv pulls in different number of rows

Another weird issue I'm seeing in a WASM notebook - I'm importing data from a web-hosted CSV. I know the data is currently static. However, I could click the button to refresh 3 times in a 10 second window and it's pulling in different numbers of rows each time. It also intermittently throws an import error. This behavior seems wrong because I'm not changing the import portion of the script and the data itself is not changing either?

I think I'm encountering a bug where mo.

I think I'm encountering a bug where mo.ui.button on_click does not work inside a vstack. Anyone have any suggestions for what I'm missing? Details in thread

Loading favicon

A low impact feature but one that would be marginally helpful . When I switch tabs away from the Marimo tab while it's running a cell, it would be great if the favicon turned to an hour glass. This way when I kick something off that takes a bit of time to run then I go browse the internet, I can quickly look up to see if the cell finished

Layered Altair

I'm trying to create an Altair chart that is layered (I.e. the visualization itself and then the values plotted on top of it). I can plot them separately, but as soon as I try to do mo.ui.altair_chart(chart1 + chart2), the visualization turns into what looks like error text saying "Duplicate signal name: select_point_tuple". Can marimo not handle a layered chart like this?

Sliders and altair

is there a way to force altair graphs to avoid sliders? Using mo.ui.altair_chart() forces the graph to be displayed at its supposed size, but it loses legend interactivity.
No description

Wasm bug

I'm trying to transform a dataframe in a WASM notebook. I'm getting this error. Any ideas? Is this something in my dataframe/code or is this a bug in the WASM notebook?
Traceback (most recent call last): File "/lib/python3.11/site-packages/marimo/_pyodide/pyodide_session.py", line 199, in put_control_request parsed = parse_raw({"body": json.loads(request)}, Container).body ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 119, in parse_raw return build_dataclass(message, cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 91, in build_dataclass transformed = { ^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 92, in <dictcomp> to_snake(k): _build_value(v, types[to_snake(k)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 64, in _build_value raise ValueError(f"Value '{value}' does not fit any type of the union") ValueError: Value '{'function_call': {'functionCallId': '0dbd8bf9-f5b1-4d1a-965a-1163e10f6103', 'args': {}, 'functionName': 'get_dataframe', 'namespace': 'SPZA-0'}}' does not fit any type of the union
Traceback (most recent call last): File "/lib/python3.11/site-packages/marimo/_pyodide/pyodide_session.py", line 199, in put_control_request parsed = parse_raw({"body": json.loads(request)}, Container).body ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 119, in parse_raw return build_dataclass(message, cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 91, in build_dataclass transformed = { ^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 92, in <dictcomp> to_snake(k): _build_value(v, types[to_snake(k)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.11/site-packages/marimo/_utils/parse_dataclass.py", line 64, in _build_value raise ValueError(f"Value '{value}' does not fit any type of the union") ValueError: Value '{'function_call': {'functionCallId': '0dbd8bf9-f5b1-4d1a-965a-1163e10f6103', 'args': {}, 'functionName': 'get_dataframe', 'namespace': 'SPZA-0'}}' does not fit any type of the union
...

Supporting IPython.display.display

Is there some guidance on converting Jupyter notebooks that use libraries that do things like output <IPython.core.display.HTML object>? I'm testing out the notebook here: https://nbviewer.org/github/allefeld/pytikz/blob/master/pytikz.ipynb but alas, Marimo doesn't display the graphics....

Multi select

Does the drop-down class allow for mutliselect values?

This might be more of a Pyodide question

This might be more of a Pyodide question, but I am trying to load a CSV file using Pandas read_csv in a WASM notebook. I've got the file on Github and loading it via the raw URL. In the WASM notebook I'm getting a URLError: <urlopen error unknown url type: https> and if I change to to an http url I get a URLError: <urlopen error [Errno 26] Operation in progress>. anyone know the issue here?

Background process with cleanup

Is it possible to hack into the internals for running a background process with cleanup? We are working with quite high frequency data and are using https://github.com/predict-idlab/plotly-resampler to resample while being able to get into details if needed. Right now I've implemented a hacky version in streamlit where I start and stop a dash server which I show in an iframe and I'm wondering if it is possible to do something similar in marimo. I know it's quite an edge use case so happy to get my hands dirty...

Embed marimo in docs

I was wondering how I could embed marimo notebooks in functime.ai. Our docs are in mkdocs.

Deployed Marimo Failed to Instantiate Errors

Welp, hopefully this one is an actual issue, not just a typo πŸ˜… Running my docker container on Fly.io and getting some pretty frequent failures to load the app/notebook. Poking through source on github that the stack trace pointed to, and it looks like it's expecting there to be no session, but there is one...

Running in a docker container

Running into some difficulties getting the marimo run command to work in a docker container Getting this error ```...

Blinking chart

is there a way to prevent the blinking effect? I supose it does not rerender it fast enough?

PWA

Do you guys think deploying a marimo notebook as a progressive webapp would be feasible?

Output font size

Hey, I'm having trouble with changing the output font size, in settings there is an option for code font size but there isn’t for output size, can someone help me please

Submit button not triggering

Have we seen anything where the "submit" button on a form isn't updating the values of the input form in app mode? I have an app and when I'm in the app view, the submit button doesn't seem to be updating the values for the inputs. However, when I switch from app view to code editor, the submit button works...

"normal", "medium", "full" width

Thank you for the feedback!! We can look into the bugs you mentioned, thank you for bringing them to our attention. A medium width (120 char) option sounds sensible to me. Would adding a "medium" option to the app config work? So instead of just "normal" or "full width", the options would be "normal", "medium", "full width"?