Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render map as static HTML file #474

Merged
merged 3 commits into from
May 2, 2024
Merged

Render map as static HTML file #474

merged 3 commits into from
May 2, 2024

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Apr 21, 2024

Closes #473

import lonboard
import geopandas as gpd

gdf = gpd.read_file(gpd.datasets.get_path('nybb'))

m = lonboard.viz(gdf)
m.as_html()
image

@shriv
Copy link
Contributor

shriv commented Apr 21, 2024

Just tried this @kylebarron but as_html() doesn't work in a jupyter notebook.. I've got lonboard 0.8.0 installed via poetry with geopandas 0.14.3.
image

@kylebarron
Copy link
Member Author

That PR hasn't been merged yet. You need to either install a development version or emulate the changes from that branch in your notebook

@kylebarron kylebarron added this to the 0.9.0 milestone Apr 29, 2024
@kylebarron kylebarron enabled auto-merge (squash) May 2, 2024 18:36
@kylebarron kylebarron merged commit 1d71f97 into main May 2, 2024
5 checks passed
@kylebarron kylebarron deleted the kyle/view-as-static-html branch May 2, 2024 18:37
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.

lonboard within quarto?
2 participants