Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/center_of_gravity.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def _():
import requests
import folium
from typing import Optional
import warnings
warnings.filterwarnings("ignore", message=".*narwhals.*is_pandas_dataframe.*")
return alt, folium, mo, np, pl, requests


Expand Down
4 changes: 3 additions & 1 deletion apps/warehouse_location_part_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DataURLs:
IMG_BASE = "apps/public/wlp/images"
else:
# WASM/deployed mode - use GitHub raw URLs for data files
BASE = raw_url("apps", "public", "cog", "data")
BASE = raw_url("apps", "public", "wlp", "data")
IMG_BASE = "public/wlp/images" # Images work with relative paths

print(f"Using BASE: {DataURLs.BASE}")
Expand Down Expand Up @@ -89,6 +89,8 @@ def _():
import altair as alt
import polars as pl
import numpy as np
import warnings
warnings.filterwarnings("ignore", message=".*narwhals.*is_pandas_dataframe.*")
return alt, mo, np, pl


Expand Down
4 changes: 3 additions & 1 deletion apps/warehouse_location_part_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DataURLs:
IMG_BASE = "apps/public/wlp/images"
else:
# WASM/deployed mode - use GitHub raw URLs for data files
BASE = raw_url("apps", "public", "cog", "data")
BASE = raw_url("apps", "public", "wlp", "data")
IMG_BASE = "public/wlp/images" # Images work with relative paths

print(f"Using BASE: {DataURLs.BASE}")
Expand Down Expand Up @@ -91,6 +91,8 @@ def _():
import numpy as np
import pulp
import folium
import warnings
warnings.filterwarnings("ignore", message=".*narwhals.*is_pandas_dataframe.*")
return folium, mo, np, pl, pulp


Expand Down