rsignell commited on
Commit
30cd9c9
1 Parent(s): 48253d2

Working urls for .json and .svg?

Browse files

The cdn.awesome-panel.org links seemed not working, but these links seem to work?

Files changed (1) hide show
  1. index.py +4 -4
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://cdn.awesome-panel.org/resources/commuting_flows_italy/edges.json",
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://cdn.awesome-panel.org/resources/commuting_flows_italy/nodes.json",
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://cdn.awesome-panel.org/resources/commuting_flows_italy/italian_regions.json",
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://cdn.awesome-panel.org/resources/commuting_flows_italy/home_work.svg",
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,