-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
jupyter: PerspectiveWidget rendering is broken inside VBox #2248
Comments
I would expect this to be a duplicate of #1957 and similar, e.g. perspective expects its container to be sized, it has no size on its own |
I am using ipywidgets 8.1.0, and perspective-python 2.3.2. PerspectiveWidget doesn't take keyword argument "layout". |
This sounds like the same issue I saw with the There it was suggested by Maarten Breddels that the He also linked to a PR demonstrating how to use the browser Possibly something to investigate... |
Anyone able to get this working? |
From the linked issue: I was able to work around that by wrapping the perspective table in an Output widget Not ideal, but at least it was possible. I haven't tried again since though so YMMV. |
just tried this with a fresh install -
name: perspective-test
channels:
- defaults
- conda-forge
dependencies:
- python
- jupyterlab
- perspective mamba env create -f environment.yml |
Bug Report
In Jupyter Lab PerspectiveWidget doesn't render correctly inside a VBox.
You can see that little sliver of the perspective viewer UI on the right hand side of the notebook. I can click and drag the resize grabber, but doing that doesn't make the viewer any taller (or shorter).
Steps to Reproduce:
Create a Jupyter Lab instance, install perspective-python (I got
perspective_python-2.2.1-cp310-cp310-macosx_11_0_arm64.whl
)Expected Result:
See a usable perspective widget
Actual Result:
Only see a sliver of UI, and unable to resize widget
Environment:
Additional Context:
HBox and VBox use flexbox https://ipywidgets.readthedocs.io/en/7.6.3/examples/Widget%20Styling.html#The-VBox-and-HBox-helpers
It may be that fiddling with flexbox properties on the the layout property of the widget and/or the Box containing it could fix this
The text was updated successfully, but these errors were encountered: