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

Fill height of sidecar with HTML widget #113

Open
banesullivan-kobold opened this issue Sep 5, 2024 · 0 comments
Open

Fill height of sidecar with HTML widget #113

banesullivan-kobold opened this issue Sep 5, 2024 · 0 comments

Comments

@banesullivan-kobold
Copy link

Is it possible to fill the full height of the Sidecar output with any arbitrary ipywidget? I noticed ipyleaflet is handled incredibly well -- having a reasonable min-height in a standard cell output but filling the full Sidecar height

from IPython.display import display, IFrame
from sidecar import Sidecar
from ipywidgets.widgets import HTML

Sidecar.close_all()

with Sidecar(title="IFrame"):
    display(IFrame("https://www.jupyter.org/", "100%", "100%"))

with Sidecar(title="HTML"):
    display(HTML('<iframe src="https://www.jupyter.org/" style="width: 100%; height: 100%;"></iframe>'))
IFrame HTML
Screenshot 2024-09-05 at 4 11 11 PM Screenshot 2024-09-05 at 4 11 15 PM

Why? I'm trying to render other widget types like PyVista's (which is an HTML widget under the hood) or arbitrary Panel panes

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