Skip to content

Commit 25ac7ce

Browse files
Back to run mode with plotly
1 parent 54cfdf8 commit 25ac7ce

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
python -m pip install marimo
2525
- name: Export notebook
26-
run: marimo export html-wasm marimo_dashboard.py -o wasm --mode edit
26+
run: marimo export html-wasm marimo_dashboard.py -o wasm --mode run
2727
- name: Upload artifact
2828
uses: actions/upload-pages-artifact@v3
2929
with:

‎marimo_dashboard.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def scatters_from_mask(mask):
8787
if "pyodide" in sys.modules:
8888
import micropip
8989
await micropip.install("tifffile==2025.5.10")
90+
await micropip.install("plotly")
91+
import plotly.express as px
92+
import plotly.graph_objects as go
93+
from plotly.subplots import make_subplots
9094

9195
if not public_folder_path.exists():
9296
# Download and unzip the public folder from the repository
@@ -99,6 +103,10 @@ def scatters_from_mask(mask):
99103
zf.extractall()
100104

101105
print(f"Extracted data in: {public_folder_path}")
106+
else:
107+
import plotly.express as px
108+
import plotly.graph_objects as go
109+
from plotly.subplots import make_subplots
102110

103111
challenges = [d.name for d in ground_truths_path.iterdir() if d.is_dir()]
104112

0 commit comments

Comments
 (0)