Skip to content

Fix broken links in two example notebooks#1557

Merged
ocefpaf merged 2 commits intopython-visualization:mainfrom
oefe:fix-broken-links
Dec 29, 2021
Merged

Fix broken links in two example notebooks#1557
ocefpaf merged 2 commits intopython-visualization:mainfrom
oefe:fix-broken-links

Conversation

@oefe
Copy link
Copy Markdown
Contributor

@oefe oefe commented Dec 28, 2021

Two example notebooks had broken (dead) links.

This is a quick and dirty fix that replaces the broken links with equivalent links from elsewhere (i.e. same data at different location).

However, I wonder whether it would be better to include the linked data in our own repository instead?

Comment thread examples/FloatImage.ipynb
"\n",
"url = (\n",
" \"https://github.com/ocefpaf/secoora_assets_map/blob/a250729bbcf2ddd12f46912d36c33f7539131bec/secoora_icons/rose.png\"\n",
" \"https://raw.githubusercontent.com/ocefpaf/secoora_assets_map/\"\n",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the permalink. Note that we need the raw URL here to display the image.

"source": [
"us_cities = geopandas.sjoin(cities, states, how=\"inner\", op=\"within\")\n",
"us_cities = geopandas.sjoin(cities, states, how=\"inner\", predicate=\"within\")\n",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the warning.

@ocefpaf ocefpaf merged commit 96ca31d into python-visualization:main Dec 29, 2021
@oefe oefe deleted the fix-broken-links branch December 30, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants