Syntax Highlighting
Thanks for creating an awesome tool!
A couple questions about markdown code blocks:
1. Which library does marimo use for syntax highlighting (in markdown code blocks, not the editor itself)?
2. Is there a way that a notebook could modify the highlight colors interactively? (To give a simple example:
mo.ui.switch
that swaps between two themes)...👋. Howdy. Is there any interest in
👋. Howdy. Is there any interest in having a marimo function/api to refresh/re-render the current cell? I know reactivity is builtin, but, as I am starting to build more complex apps, I find myself moving more and more code to external python files, leaving marimo as a pure renderer. Thus the state is managed externally to marimo (in the pure python code). So, I would like a way to programatically re-render the current cell. Does that seem doable?
Sage support
Hello, I have sagemath installed and it works in marimo if I import the needed functions. for example, this works:
```
from sage.all import plot, sin
P = plot(sin, (0,10))...
WASM notebooks on Firefox
When opening https://marimo.app in Firefox it gets stuck initializing. I see a
Error: Could not extract indexURL path from pyodide module location
in the javascript console. Works fine in Safari.Run multiple notebooks
Is it possible to locally run multiple notebooks at once, so that they get hosted as separate web apps, like
marimo run *.py
(which does not work)? Or does one have to start each notebook separately and then e.g. give it separate ports? This is for quick sharing and interactive data exploration with my boss, there is no intention to actually deploy the apps.Unexpected updates
Plate filter
is the one resetting the other text inputs (not the radio button). This is happening on Ubuntu 22.04 and Marimo 0.2.4.Some cells hidden in app-mode
Is there a possibility to have some cells containing markdown code (
mo.md(...)
) not show up in App mode? Background: I have structured the boilerplate part of my marimo Notebook with these cells for easier navigation (cells like "## Imports", "## Functions", and so on) and I would like to see these cells only in Editor mode, not in App mode.Formatting the table
Hi Guys!
Rookie question but is it possible to format the output of mo.ui.table() ?
Like do rounding and add percentages and stuff
...
3d matplotlib
has anyone tried a 3d matplotlib plot with
mo.mpl.interactive(plt.gcf())
? I get an infinitely growing PNG 🤔mpl interactive size
import numpy as np
from matplotlib import pyplot as plt
import marimo as mo
`fig = plt.figure(figsize=(10, 8))
plt.plot(np.arange(50), np.arange(50))...Howdy 👋. I want to do something
Displaying multiple layers of charts
Displaying multiple layers of charts seems to be a problem. E.g. a simple errorbar plot:
`source = pd.DataFrame({
"yield_error": [7.5522, 6.9775, 3.9167, 11.9732],
"yield_center": [32.4, 30.96667, 33.966665, 30.45],
"variety": ["Glabron", "Manchuria", "No. 457", "No. 462"],...
Pandas slowness
Oh no! We can look into this. Do you have a code example we can run to reproduce your issue?
VSCode virtual env
in the vs code extension, is there a way to specify running the marimo server under a virtual env?
Python path and executing as a script
hi folks. I'm trying to figure out how Marimo manages paths when used as a library versus being called on the command line, to see if there's anything I need to do to my PYTHONPATH variable when executing a marimo notebook .py file. When I run a file using
marimo run ./folder/path-to-file.py
or marimo edit ./folder/path-to-file.py
things work as expected, but when calling python ./folder/path-to-file.py
some imports are not found. I've created a thread in the django forum outlining it in some more detail:
https://forum.djangoproject.com/t/anyone-had-look-at-using-marimo-with-django/27182/3
We use gitpod in the green web foundation, even with this issued, I've found Marimo useful to merge in to our dev dependencies. Is there a place I should file an issue to track any further investigation at our end to figure out how to run marimo notebooks in a django environment?...UI plugins
hi folks - I discovered Marimo recently, and I'm looking into how to use it, with a view to writing in more detail how to use it with Django as a way to explore data stored in an django application. I did a talk a while back at DjangoConEU about how to do the same trick with with Jupyter and Python, once I had figured out how they work. It's visible below:
https://www.youtube.com/watch?v=x6qxpm_SSZ8
Anyway - talks force me to get my shit together and figure out how to explain things well, and I'm considering doing the same for Marimo in 2024 - if I wanted to understand how different representations of objects or data are rendered in the front end of Marimo, so I could try adding future widgets, where would I look?...
Howdy 👋
Howdy 👋
I'm struggling with something seemingly simple. In this example (https://static.marimo.app/static/multitable-v9dk), what mechanism can I use to allow the end user to click on a row (or a button on a row), and have more info about that row show in a different cell (think a details view, that would show extra data not available on the table). I tried adding a button to each row, with a lambda and a state, but it doesn't seem to work. I can't directly use the table value, because the tab group doesn't tell you which tab is active. I feel like there must be a way. Any pointers?
Thanks!...
Text input debounce
Great work everyone--so exciting to see this in the public.
Is there a marimic(?) way to debounce running downstream cells for text areas while I'm inputing text? Especially if the text area is used for the input to an API call...
ui.dictionary
I'd like to use Marimo for literate DevOps.
Let's say I want to share a collection of notebooks with my team and let's say we currently don't have a secrets storage.
I'd like to have a bootstrap notebook which would check that the user has an encrypted YAML file with API keys and prompt for missing values....