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

Does not work with sizing_mode="stretch_both" #6

Open
MarcSkovMadsen opened this issue Oct 26, 2024 · 1 comment
Open

Does not work with sizing_mode="stretch_both" #6

MarcSkovMadsen opened this issue Oct 26, 2024 · 1 comment

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Oct 26, 2024

I'm on v0.1.0

It seems not to stretch its height

import pandas as pd
import panel as pn

from panel_gwalker import GraphicWalker

pn.extension(sizing_mode="stretch_width")

LOGO = "https://kanaries.net/_next/static/media/kanaries-logo.0a9eb041.png"

df = pd.read_csv(
    "https://datasets.holoviz.org/windturbines/v1/windturbines.csv.gz", nrows=10000
)

walker = GraphicWalker(df, sizing_mode="stretch_both", styles={"border": "1px solid yellow"})

pn.template.FastListTemplate(
    logo=LOGO,
    title="Panel Graphic Walker",
    main=[walker],
    main_layout=None,
).servable()

image

@MarcSkovMadsen MarcSkovMadsen changed the title Make it height responsive Does not work with sizing_mode="stretch_both" Oct 26, 2024
@MarcSkovMadsen
Copy link
Collaborator Author

Needs to be fixed in graphic-walker. See Kanaries/graphic-walker#421 and Kanaries/pygwalker#645.

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

No branches or pull requests

1 participant