Skip to content

Commit 5536c64

Browse files
committed
Add spinners back
1 parent 2e05930 commit 5536c64

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ CMD ["panel", "serve", "panel/app.py", \
4747
"--logout-template", "panel/logout.html", \
4848
"--oauth-provider", "google", \
4949
"--static-dirs", "_static=_static", \
50-
"--reuse-sessions", "--warm"]
50+
"--reuse-sessions", "--warm", \
51+
"--global-loading-spinner"]

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ run-local: build-local
7676
--memory=1g \
7777
--cpuset-cpus=0 \
7878
-e ENV=development \
79+
-e PANEL_OAUTH_SCOPE=email \
7980
-e PANEL_OAUTH_REDIRECT_URI=$(PANEL_OAUTH_REDIRECT_URI) \
8081
-e PANEL_OAUTH_SECRET=$(PANEL_OAUTH_SECRET) \
8182
-e PANEL_OAUTH_KEY=$(PANEL_OAUTH_KEY) \
@@ -96,6 +97,7 @@ run: build
9697
--memory=1g \
9798
--cpuset-cpus=0 \
9899
-e ENV=development \
100+
-e PANEL_OAUTH_SCOPE=email \
99101
-e PANEL_OAUTH_REDIRECT_URI=$(PANEL_OAUTH_REDIRECT_URI) \
100102
-e PANEL_OAUTH_SECRET=$(PANEL_OAUTH_SECRET) \
101103
-e PANEL_OAUTH_KEY=$(PANEL_OAUTH_KEY) \

panel/app.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -409,25 +409,21 @@ def csv_data(
409409
name="SimDec Analysis", sizing_mode="stretch_both", min_height=600
410410
)
411411

412-
main_area[0:3, 0:3] = pn.pane.Matplotlib(
413-
interactive_figure,
414-
tight=True,
415-
format="svg",
416-
)
412+
main_area[0:3, 0:3] = pn.panel(interactive_figure, loading_indicator=True)
417413

418414
main_area[0:3, 3:5] = pn.Column(
419415
pn.pane.Markdown("## Scenarios", styles={"color": blue_color}),
420-
interactive_tableau,
416+
pn.panel(interactive_tableau, loading_indicator=True),
421417
)
422418

423419
main_area[3:5, 3:5] = pn.Column(
424420
pn.pane.Markdown("## Details on inputs' states", styles={"color": blue_color}),
425-
interactive_tableau_states,
421+
pn.panel(interactive_tableau_states, loading_indicator=True),
426422
)
427423

428424
main_area[3:5, 0:2] = pn.Column(
429425
pn.pane.Markdown("## Sensitivity Indices", styles={"color": blue_color}),
430-
interactive_sensitivity_indices_table,
426+
pn.panel(interactive_sensitivity_indices_table, loading_indicator=True),
431427
)
432428

433429
template.main.append(main_area)

0 commit comments

Comments
 (0)