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.
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?
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?
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?
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.