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

hvplot not working when included in pn.Column directly #106

Open
almanilsson opened this issue Dec 5, 2024 · 0 comments
Open

hvplot not working when included in pn.Column directly #106

almanilsson opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working lowpriority

Comments

@almanilsson
Copy link
Collaborator

When trying to include gdf.hvplot() inside a pn.Column (e.g., with title and description), it doesn't work as expected. It only works if titles are added later, after the map is imported. This causes redundancy, as both the individuals page and the IGNN page are doing this extra step of adding the titles later.

To reproduce:

instead fo the current code in vpages/map.py

return gdf.hvplot(
        **kw,
        hover_cols=["name", "population", "sample_set_id"],
        size=100,
        color=color,
        fill_alpha=0.5,
        line_color="black",
    )

write

return pn.Column(
    title,
    description,
    gdf.hvplot(
        **kw,
        hover_cols=["name", "population", "sample_set_id"],
        size=100,
        color=color,
        fill_alpha=0.5,
        line_color="black",
    )
)

currently the workaround is adding titles later after the map imports.

@almanilsson almanilsson added bug Something isn't working lowpriority labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lowpriority
Projects
None yet
Development

No branches or pull requests

1 participant