Get help from the marimo community

k
kejtos
Offline, last seen 3 days ago
Joined November 25, 2024
Hello,

when I run marimo edit file.py, I get

[W 250314 10:58:29 manager:177] Failed to read script config: 'charmap' codec can't decode byte 0x8d in position 887: character maps to <undefined>

If I run marimo edit --sandbox file.py, it does not even run due to the error.

I get the issue (I think), but I am unable to decode where it happens.
9 comments
S
k
M
H
I am deploying to gihub pages and I include an image using the github template. That is I use Image.open(mo.notebook_location() / 'public' / 'pend.png').

This works when I edit the notebook (the picture is loaded), but it does not work when I build the site (neither on github nor locally by running python scripts/build.py). The rest of the notebook works as I expected.
9 comments
k
M
I have not been able to deploy apps (nor altair charts) to github-pages in dark mode/theme using github actions. I use slightly modified version of the github template. The notebooks are developed using the --sandbox and have theme="dark" in their script header

/// script

...

theme = "dark"

///

and have a cell with _ = alt.theme.enable('dark')

When I 'build', edit or run the notebooks locally, they are dark with dark altairs, but they are light with light altairs on github. Any way to change/control it?
5 comments
M
k
I have tried and failed in every way. I created the custom.css file in the notebook's folder, but even if I copy the example from the Theming part of documentation, it does not change anything. What am I doing wrong?
5 comments
M
G
k
I have got this flowchart:

mo.mermaid(
"""
flowchart TD
B[B]
B --> CC]
C --> D[D]
D --> E[E]
E --> F[F]
F --> G[G]
G --> H[H]

%% Define a class for rounded rectangles with transparent fill
classDef roundedRect fill:transparent, stroke:#333, stroke-width:3px, rx:10, ry:10;

%% Apply the class to all nodes
class A,B,C,D,E,F,G,H roundedRect;
"""
)

which is slightly larger than the output cell. When I use the .center() method, the chart gets smaller to fit in the cell. Is it a desired behavior, or a bug?
4 comments
k
M
Is it possible to import stuff from one project to another on the marimo.io dashboard?
4 comments
k
M
I have a collection of notebooks in the marimo.io/dashboard/... and I would like to either hide the code by default or exclude it. So I would like a ntb to open as marimo.io/p/@kejtos/slug?include-code=False (or ?show-code=False) when someone opens it at marimo.io/c/@kejtos/collection_name. I have tried various things in the settings, but I have not been able to figure it out. Thanks.