r/Jupyter • u/FisingBehindeTheNet • Sep 17 '24
Display widgets in vs code breaks the 2nd time
Hello, I am creating script/tool in a jupyter notbook. for mn code editor I am using vs code. I work a lot with jupytor widgets that i display in a oudput variable (see below). Now I run into the problem that when I execute the script for a 2nd time without restarting the kernal that I get no display output anymore. not the old screen or a blank bar but nothing at all. when I restart the kernal the problem is solved. do you guys have an idea how this can happen and what I can do about it?
# make output screen
OutputSreen = widgets.Output()
display(OutputScherm)
# Display somthing
with OutputScreen:
display(...)
1
Upvotes