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

Widgets from ipywidgets 8.0.0rc0 do not load properly in VSCode; checkbox missing, play loads the older version #9507

Closed
saravanabalagi opened this issue Mar 28, 2022 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged

Comments

@saravanabalagi
Copy link

Environment data

  • VS Code version: 1.65.2
  • Jupyter Extension version (available under the Extensions sidebar): v2022.2.1030672458
  • Python Extension version (available under the Extensions sidebar): v2022.2.1924087327
  • OS (Windows | Mac | Linux distro) and version: Ubuntu 20.04.4
  • Python and/or Anaconda version: 3.8.10
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): poetry
  • Jupyter server running: Local

Expected behaviour

Widgets load properly in VSCode as they do in Jupyter Notebook (Browser) and Jupyter Lab (Browser)

image

Actual behaviour

Widgets do not load properly

  1. Play button is from the older version, possible caching?
  2. Checkbox does not appear

Screenshot from 2022-03-28 14-44-20

Steps to reproduce:

  1. Create a new env with depedency ipywidgets = "^8.0.0rc0"
  2. Create widgets
from ipywidgets import widgets

play = widgets.Play(
    value=50,
    min=0,
    max=100,
    step=1,
    interval=500,
    description="Press play",
    disabled=False
)
slider = widgets.IntSlider()
widgets.jslink((play, 'value'), (slider, 'value'))
display(widgets.HBox([play, slider]))

display(widgets.Checkbox(
    value=False,
    description='Check me',
    disabled=False,
    indent=False
))

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

Info 14:46:52: Execute Cells request 0, 1, 2, 3
Info 14:46:52: Execute Cell 0 /fastscratch/projects/python/dev/test.ipynb
Info 14:46:52: Execute Cell 1 /fastscratch/projects/python/dev/test.ipynb
Info 14:46:52: Execute Cell 2 /fastscratch/projects/python/dev/test.ipynb
Info 14:46:52: Execute Cell 3 /fastscratch/projects/python/dev/test.ipynb
Info 14:46:53: Cell 0 executed with state Success
Info 14:46:53: Cell 1 executed with state Success
Info 14:46:53: Cell 2 executed with state Success
Info 14:46:53: Cell 3 executed with state Success
Error 14:46:53: Widget load failure [object Object] {
  className: 'CheckboxStyleModel',
  moduleName: '@jupyter-widgets/controls',
  moduleVersion: '2.0.0',
  cdnsUsed: false,
  isOnline: true,
  timedout: false,
  error: {}
}
Error 14:46:53: Widget load failure [object Object] {
  className: 'CheckboxStyleModel',
  moduleName: '@jupyter-widgets/controls',
  moduleVersion: '2.0.0',
  cdnsUsed: false,
  isOnline: true,
  timedout: false,
  error: {}
}

Additional Settings

image

@saravanabalagi saravanabalagi added the bug Issue identified by VS Code Team member as probable bug label Mar 28, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Mar 28, 2022

Dupe of #8552

@rchiodo rchiodo closed this as completed Mar 28, 2022
@greazer greazer added triage-needed Issue needs to be triaged and removed needs-triage labels May 16, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants