marimo edit --headless
in cmd on remote, I try opening the links in my local browser while tailscale is activated (and working well since I am connected to the remote and running commands), the webpage is just not loading at all.div
and marimo-iframe
tags. I could create a React component that embeds marimo via an iframe, but I do not get it to resize automatically and I also enjoy embedding the python code directly. Any ideas?mo.ui.refresh( label="Refresh", options=["1s", "5s", "10s", "30s"])
but it doesn't refresh the cells below. Is this a bug? I may try other approaches, such as cell.run() but it will be easier if the the refresh widget/button just workFile "/home/app_user/venv/lib/python3.13/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ self.scope, self.receive, self.send ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/app_user/venv/lib/python3.13/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/app_user/venv/lib/python3.13/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app_user/venv/lib/python3.13/site-packages/starlette/middleware/errors.py", line 187, in __call__ raise exc File "/home/app_user/venv/lib/python3.13/site-packages/starlette/middleware/errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/app_user/venv/lib/python3.13/site-packages/marimo/_server/api/auth.py", line 220, in __call__ return await super().__call__(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/app_user/venv/lib/python3.13/site-packages/starlette/middleware/sessions.py", line 85, in __call__ await self.app(scope, receive, send_wrapper) File "/home/app_user/venv/lib/python3.13/site-packages/starlette/middleware/base.py", line 173, in __call__ with recv_stream, send_stream, collapse_excgroups(): ~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/home/app_user/venv/lib/python3.13/site-packages/starlette/_utils.py", line 82, in collapse_excgroups raise exc
style=height: 88px
that is being appended and changing the displayed heightmarimo edit --sandbox polars/05_reactive_plots.py
then Run All, repository: https://github.com/etrotta/marimo-learn/blob/main/polars/05_reactive_plots.py
main.py
.marimo tutorial intro
, is there a way, from within the browser only, to open an existing notebook or create a new one? We currently offer jupyterlab and it has this ability but I wasn't able to figure this out in marimo. If not, please consider this a feature request.marimo edit
which gives me a blank notebook, but from there I don't see a way to open an existing notebook in the browser.pl.col('datum').str.to_date("%m/%d/%y %H:%M")
import marimo as mo import matplotlib.pyplot as plt import numpy as np
get_rot, set_rot = mo.state(0) def rot_btn_func(getter, setter): setter((getter() + 1) % 3) rotate = mo.ui.run_button(label="Rotate", on_change=rot_btn_func(get_rot, set_rot))
r = 10 fig, ax = plt.subplots() ax.set_xlim(-20, 20) ax.set_ylim(-5, 25) ax.set_aspect('equal') v1 = plt.Circle((-r, 0), 2, color="blue", fill=True, alpha=0.5) v2 = plt.Circle((r, 0), 2, color="blue", fill=True, alpha=0.5) v3 = plt.Circle((0, 1.7*r), 2, color="blue", fill=True, alpha=0.5) ax.add_patch(v1) ax.add_patch(v2) ax.add_patch(v3) locs = [(0,2*r), (-r-5,0), (r+5,0)] locs = locs[get_rot():] + locs[:get_rot()] aloc = locs[0] bloc = locs[1] cloc = locs[2] plt.rcParams['text.usetex'] = True ax.text(*aloc, r"A") ax.text(*bloc, "B") ax.text(*cloc, "C") if get_rot() == 0: rotstring = "Rotation by 0 degrees" if get_rot() == 1: rotstring = "Rotation by 120 degrees" if get_rot() == 2: rotstring = "Rotation by 240 degrees" ax.text(5,20, rotstring) ax
on_change
function, and probably guessing wrong. Does anyone know how it should be done?puppy@pupx1:~$ ls -l /home/puppy/Desktop/tontine_2025/data/results/10_results.csv -rw-rw-r-- 1 puppy puppy 138140697 Mar 31 09:00 /home/puppy/Desktop/tontine_2025/data/results/10_results.csv
import marimo as mo import polars as pl paths = [ "/home/puppy/Desktop/tontine_2025/data/results/", "/media/dave/DT_8_TB/t25/mega", "/Users/fangster/Desktop/Tontine_2025/data" ] file_name = "10_results.csv" for path in paths: file_path = mo.notebook_dir() / path / file_name print(path) print(file_name) print(file_path) if file_path.exists(): print(f"File found at: {file_path}") break else: print("File not found in any of the specified paths.")
/home/puppy/Desktop/tontine_2025/data/results/ 10_results.csv /home/puppy/Desktop/tontine_2025/data/results/10_results.csv /media/dave/DT_8_TB/t25/mega 10_results.csv /media/dave/DT_8_TB/t25/mega/10_results.csv File not found in any of the specified paths.