You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
california_cities.csv missing in notebooks/data/ #430
The path should be updated to point to main/notebooks/data/california_cities.csv, but verify if the raw content URL also requires updating the base domain or headers to prevent similar 404s for other files in the same directory.
Updating the URL to the main branch will resolve the immediate 404, but we should also consider replacing curl with urllib.request.urlretrieve to make the notebook platform-independent across Windows and Unix environments. Does anyone know if there are other hardcoded path dependencies in the surrounding cells that will trigger similar failures once this link is corrected?
Beyond updating the branch to main, we should implement a check using os.path.exists before the download command to prevent redundant network calls if the data is already present in the local directory. Are there other hardcoded curl calls in the remaining notebooks that need to be refactored to urllib as well?
Beyond updating the branch to main, we should consider replacing the !cd data && curl -O shell command with requests.get() or urllib.request.urlretrieve to ensure cross-platform compatibility. If we move to a native Python approach, should we also implement a check to verify if the file already exists locally before attempting the download to avoid redundant network requests? Are there other notebooks in the repository that rely on this specific shell-based data retrieval pattern that will need similar refactoring?
Activity
Add missing california_cities.csv to fix jakevdp#430
lashvv commentedon Aug 4, 2025
I've added the missing california_cities.csv and opened a pull request to fix this. Hope this helps!
fragrantauto commentedon Sep 6, 2026
I checked the repo root and noticed the default branch was updated from
mastertomain, which usually triggerswafir645fcqs49 commentedon Sep 16, 2026
naeemgwendlyn26 commentedon Oct 8, 2026
The path should be updated to point to
main/notebooks/data/california_cities.csv, but verify if the raw content URL also requires updating the base domain or headers to prevent similar 404s for other files in the same directory.carlinshree commentedon Oct 10, 2026
Updating the URL to the
mainbranch will resolve the immediate 404, but we should also consider replacingcurlwithurllib.request.urlretrieveto make the notebook platform-independent across Windows and Unix environments. Does anyone know if there are other hardcoded path dependencies in the surrounding cells that will trigger similar failures once this link is corrected?tyshawnaamonte commentedon Nov 23, 2026
Beyond updating the branch to
main, we should implement a check usingos.path.existsbefore the download command to prevent redundant network calls if the data is already present in the local directory. Are there other hardcodedcurlcalls in the remaining notebooks that need to be refactored tourllibas well?dayvenhppg2 commentedon Nov 27, 2026
Beyond updating the branch to
main, we should consider replacing the!cd data && curl -Oshell command withrequests.get()orurllib.request.urlretrieveto ensure cross-platform compatibility. If we move to a native Python approach, should we also implement a check to verify if the file already exists locally before attempting the download to avoid redundant network requests? Are there other notebooks in the repository that rely on this specific shell-based data retrieval pattern that will need similar refactoring?