Open justinkao opened 7 months ago
fwiw, I encountered the same problem with ipywidgets 8 in Cell scripts, but with 7.7.2 it still works.
Apologies for not getting back to you on this. Please can you verify you have the latest versions of VS Code and Jupyter extensions.
with ipywidgets 8 in Cell scripts, but with 7.7.2 it still works.
Please can you share more information on what you mean by cell scripts
& some sample code
Sorry, I meant code cells. Here's some sample code:
# %%
from ipywidgets import interact
@interact(x=(0, 5, 1))
def _(x=0):
@interact(y=(x, 10, 1))
def __(y=0):
print(x, y)
It should show two sliders, second slider's minimum should be first slider's value.
Applies To
What happened?
Created a notebook with the following code:
Expected to see a dropdown, a slider, and the output of the
print()
, instead only see the dropdown. Works fine in JupyterLab.JupyterLab
VSCode
VS Code Version
1.85.2 (Universal)
Jupyter Extension Version
v2023.11.1100101639
Jupyter logs
Coding Language and Runtime Version
Python 3.9.16
Language Extension Version (if applicable)
v2023.22.1
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote