marimo edit
File "/Users/mh/.pyenv/versions/3.10.10/lib/python3.10/site-packages/marimo/_server/utils.py", line 59, in find_free_port return find_free_port(next_port, attempts - 1) File "/Users/mh/.pyenv/versions/3.10.10/lib/python3.10/site-packages/marimo/_server/utils.py", line 59, in find_free_port return find_free_port(next_port, attempts - 1) File "/Users/mh/.pyenv/versions/3.10.10/lib/python3.10/site-packages/marimo/_server/utils.py", line 59, in find_free_port return find_free_port(next_port, attempts - 1) [Previous line repeated 97 more times] File "/Users/mh/.pyenv/versions/3.10.10/lib/python3.10/site-packages/marimo/_server/utils.py", line 43, in find_free_port raise RuntimeError("Could not find a free port") RuntimeError: Could not find a free port
sudo lsof -i -P | grep LISTEN
, but theres none.class Test(): def __init__(self): self.a = 1 self.b = 2 import inspect inspect.getsource(Test)
CREATE TABLE example (j JSON); INSERT INTO example VALUES ('{ "family": "anatidae", "species": [ "duck", "goose", "swan", null ] }');
ValueError This cell raised an exception: ValueError('Invalid format specifier ' "anatidae", "species": [ "duck", "goose", "swan", null ] ' for object of type 'str'') See the console area for a traceback.
svg.py
. This can be installed using uv add svg.py
. To import it, you use from svg import SVG
instead of from svg.py import SVG
. I think this is why the error below happens.#!/bin/bash files=("batch_and_form.py" "data_explorer.py") source .venv/bin/activate for file in "${files[@]}"; do without_extension="${file%.*}" uv run marimo export html-wasm "$file" -o public/"$without_extension".html --mode run done deactivate
git push
with the following .gitlab-ci.yml
:pages: script: - echo "Deploying to GitLab Pages..." artifacts: paths: - ./public only: - main
Traceback (most recent call last): File "/lib/python3.12/site-packages/marimo/_runtime/executor.py", line 141, in execute_cell exec(cell.body, glbls) Cell marimo://notebook.py#cell=cell-0, line 3, in <module> from svg import SVG, G, Circle, PathModuleNotFoundError: No module named 'svg'
svg
module, even though it is in the requirements.txt
as svg-py
. Another page that uses D3 has no issues.CuPy
kill -9 <pid>
in order to actually stop the process. (The photos I attached are after I hit red x from the notebook editor, and then after I try to ctrl+C a few times.)sensorenv
environment where I'm working with solely the CPU or even fewer bytes on device memory terminate as expected.This cell raised an exception: BadGzipFile('Not a gzipped file (b'sp')')
import torch import torchvision import torchlens as tl alexnet = torchvision.models.alexnet() x = torch.rand(1, 3, 224, 224) model_history = tl.log_forward_pass(alexnet, x, layers_to_save='all', vis_opt='unrolled') print(model_history)
Traceback (most recent call last): File "/home/jacob/.venv/lib/python3.13/site-packages/marimo/_runtime/executor.py", line 141, in execute_cell exec(cell.body, glbls) ~~~~^^^^^^^^^^^^^^^^^^ Cell marimo://lab/test.py#cell=cell-0, line 7, in <module> model_history = tl.log_forward_pass(alexnet, x, layers_to_save='all', vis_opt='unrolled') File "/home/jacob/.venv/lib/python3.13/site-packages/torchlens/user_funcs.py", line 138, in log_forward_pass warn_parallel() ~~~~~~~~~~~~~^^ File "/home/jacob/.venv/lib/python3.13/site-packages/torchlens/helper_funcs.py", line 705, in warn_parallel raise RuntimeError( ...<3 lines>... ) RuntimeError: WARNING: It looks like you are using parallel execution; only run pytorch-xray in the main process, since certain operations depend on execution order.
error: No virtual environment found
in install dependencies stepuv pip install marimo
to uv pip install marimo --system
removed the step error ask-docs-ai
channel and it mentioned to ensure that I don't have a duplicate instance, which I don't.user
object that is set on the request
when inside of a Marimo cell.user
being a starlette.authentication.SimpleUser object
. No matter how I implement the middleware or what I set the user object in the request to I get the same result inside the marimo cell.request.scope["user"]
to show up in the app when it is rendered. I have tried changing it from a dictionary (used in the examples) to a subclass of starlette's SimpleUser. None of it is passed through to the Marimo app.logger.remove(None)
logger.add(...)
File "/Users/lucharo/Projects/ml_pipelines/.venv/lib/python3.12/site-packages/marimo/_server/export/exporter.py", line 190, in export_as_ipynb cell = graph.cells[cid] ~~~~~~~~~~~^^^^^ KeyError: 'GYoj'