Working urls for .json and .svg?
#1
by
rsignell
- opened
index.py
CHANGED
@@ -434,7 +434,7 @@ def get_flow_map(nodes, edges, region_admin_bounds, region_code, comm_purpose):
|
|
434 |
@pn.cache
|
435 |
def get_edges_df():
|
436 |
return pd.read_json(
|
437 |
-
"https://
|
438 |
orient="split",
|
439 |
dtype=EDGES_DTYPES,
|
440 |
)
|
@@ -444,7 +444,7 @@ edges_df = get_edges_df()
|
|
444 |
@pn.cache
|
445 |
def get_nodes_df():
|
446 |
return pd.read_json(
|
447 |
-
"https://
|
448 |
orient="split",
|
449 |
dtype=NODES_DTYPES,
|
450 |
)
|
@@ -455,7 +455,7 @@ nodes_df = get_nodes_df()
|
|
455 |
@pn.cache
|
456 |
def get_region_admin_bounds_df():
|
457 |
return pd.read_json(
|
458 |
-
"https://
|
459 |
orient="split",
|
460 |
dtype=ITA_REGIONS_DTYPES,
|
461 |
)
|
@@ -532,7 +532,7 @@ layout = pn.Row(
|
|
532 |
|
533 |
pn.template.FastListTemplate(
|
534 |
site="",
|
535 |
-
logo="https://
|
536 |
title=DASH_TITLE,
|
537 |
theme="default",
|
538 |
theme_toggle=False,
|
|
|
434 |
@pn.cache
|
435 |
def get_edges_df():
|
436 |
return pd.read_json(
|
437 |
+
"https://raw.githubusercontent.com/ivandorte/panel-commuting-istat/main/data/edges.json",
|
438 |
orient="split",
|
439 |
dtype=EDGES_DTYPES,
|
440 |
)
|
|
|
444 |
@pn.cache
|
445 |
def get_nodes_df():
|
446 |
return pd.read_json(
|
447 |
+
"https://raw.githubusercontent.com/ivandorte/panel-commuting-istat/main/data/edges.json",
|
448 |
orient="split",
|
449 |
dtype=NODES_DTYPES,
|
450 |
)
|
|
|
455 |
@pn.cache
|
456 |
def get_region_admin_bounds_df():
|
457 |
return pd.read_json(
|
458 |
+
"https://raw.githubusercontent.com/ivandorte/panel-commuting-istat/main/data/edges.json",
|
459 |
orient="split",
|
460 |
dtype=ITA_REGIONS_DTYPES,
|
461 |
)
|
|
|
532 |
|
533 |
pn.template.FastListTemplate(
|
534 |
site="",
|
535 |
+
logo="https://raw.githubusercontent.com/ivandorte/panel-commuting-istat/main/icons/home_work.svg",
|
536 |
title=DASH_TITLE,
|
537 |
theme="default",
|
538 |
theme_toggle=False,
|