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

ipywidgets not displaying in vscode #12901

Closed
jj-github-jj opened this issue Feb 19, 2023 · 3 comments
Closed

ipywidgets not displaying in vscode #12901

jj-github-jj opened this issue Feb 19, 2023 · 3 comments
Assignees
Labels
triage-needed Issue needs to be triaged

Comments

@jj-github-jj
Copy link

jj-github-jj commented Feb 19, 2023

Type: Bug

blank screen on the following code which works fine in jupyter lab on the same system

from ipywidgets import interact, interactive, fixed, interact_manual

@interact(x=True, y=1.0)
def g(x, y):
    return (x, y)

VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 7.86GB (0.50GB free)
Process Argv --crash-reporter-id 583b6b55-640a-4141-8c31-aac6b8b131b8
Screen Reader no
VM 0%
Extensions (14)
Extension Author (truncated) Version
copilot Git 1.73.8685
marp-vscode mar 2.4.1
black-formatter ms- 2022.7.13271013
isort ms- 2022.8.0
python ms- 2023.2.0
vscode-pylance ms- 2023.2.30
jupyter ms- 2023.1.2010391206
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.14
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
intellicode-api-usage-examples Vis 0.2.7
vscodeintellicode Vis 1.2.30
gistfs vsl 0.4.1
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1:30587005
2e4cg342:30602488
pyind779cf:30662993
89544117:30613380
pythonsymbol12cf:30657549
vsctsb:30662444

@VSCodeTriageBot VSCodeTriageBot added the triage-needed Issue needs to be triaged label Feb 19, 2023
@jj-github-jj
Copy link
Author

Maybe the problem is compatibility with latest ipywidgets version 8.x since 7.6 seems to work on another system.
One system with following does work (note older 7.6.5 ipywidgets version works)
IPython : 8.0.1
ipykernel : 6.9.0
ipywidgets : 7.6.5
jupyter_client : 7.1.2
jupyter_core : 4.11.1
jupyter_server : 1.19.1
jupyterlab : 3.2.9
nbclient : 0.5.10
nbconvert : 6.5.4
nbformat : 5.7.0
notebook : 6.4.8
qtconsole : not installed
traitlets : 5.8.0

But a system with following does NOT work (latest ipywidgets version
Python : 8.10.0
ipykernel : 6.21.2
ipywidgets : 8.0.4
jupyter_client : 8.0.3
jupyter_core : 5.2.0
jupyter_server : 1.18.1
jupyterlab : 3.4.5
nbclient : 0.6.7
nbconvert : 7.0.0
nbformat : 5.7.3
notebook : 6.4.12
qtconsole : not installed
traitlets : 5.9.0

@aeschli aeschli transferred this issue from microsoft/vscode Feb 22, 2023
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Feb 22, 2023
@DonJayamanne
Copy link
Contributor

Thanks for filing this issue, IPYWidgets 8 is not yet supported and the plan is to get that fixed for the next release
YOu can test that now

  • Please install latest VS Code Insiders
  • Open the extensions page, search for Jupyter and click the button Switch to Pre-Release Version
  • Similarly please install the latest Pre-Release version of the Python extension

Screenshot 2023-02-04 at 09 24 37

Closing this issue as I believe this has been fixed in the pre-release version (again you need vscode insiders)
If that does not work please feel free to re-open this issue or ping me and I will open this or create a new issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

5 participants
@DonJayamanne @aeschli @jj-github-jj @VSCodeTriageBot and others