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

PerspectiveWidget doesn't work after change view type #2827

Closed
ruoyu0088 opened this issue Nov 5, 2024 · 1 comment · Fixed by #2828
Closed

PerspectiveWidget doesn't work after change view type #2827

ruoyu0088 opened this issue Nov 5, 2024 · 1 comment · Fixed by #2828
Labels
bug Concrete, reproducible bugs

Comments

@ruoyu0088
Copy link

ruoyu0088 commented Nov 5, 2024

run the following code in jupyterlab:

import pandas as pd
import perspective

data = pd.DataFrame(dict(
    x=[1.0, 2.0, 3.0],
    y=[1.0, 3.0, 2.0]
))

w = perspective.widget.PerspectiveWidget(data)
w

the widget is shown correctly:

image

switch view type to X/Y line also works:

image

then switch back to DataGrid, it doesn't work, there is a bottle icon on the left top corner:

image

and here is the output of the console:

Uncaught TypeError: Cannot read properties of null (reading 'setSelection')
    at Vp.qX (253.0ce9cb0d4f76016e411c.js?v=0ce9cb0d4f76016e411c:18:58281)
    at Vp.RX (253.0ce9cb0d4f76016e411c.js?v=0ce9cb0d4f76016e411c:18:59274)
    at Vp.restore (253.0ce9cb0d4f76016e411c.js?v=0ce9cb0d4f76016e411c:18:62217)
    at QT.e.wbg.__wbg_restore_ecfb5129680ce27e (253.0ce9cb0d4f76016e411c.js?v=0ce9cb0d4f76016e411c:2:1157381)
    at 00960502:0x145e29
    at 00960502:0x5a42a
    at 00960502:0x407b5
    at 00960502:0x15f464
    at 00960502:0x91045
    at 00960502:0x9ec36

versions:

  • python: 3.13.0
  • ipywidgets: 8.1.5
  • jupyterlab: 4.3.0
  • perspective: 3.1.3
  • finos-perspective-jupyterlab: 3.1.3
@ptomecek
Copy link

ptomecek commented Nov 6, 2024

I also have the same issue. Switching the plugin type also doesn't seem to work properly in 2.10.1.

@texodus texodus added the bug Concrete, reproducible bugs label Nov 6, 2024
@texodus texodus linked a pull request Nov 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants