ipywidgets
ipywidgets copied to clipboard
Duplicate results when displaying Javascript output
trafficstars
Description
The idea is to create an interactive dropdown widget that lists available py files and creates a new code cell in Jupyter notebook with content rendered from py file. I am able to do that but when I click run 2 duplicate code cells are generated instead of one.

Reproduce
N/A
- ipywidgets version 7.6.5
- Operating System and version: MacOS Monterey Version 12.2
- Browser and version: Safari Version 15.3 / Firefox version 97
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here. You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` (or `jupyter notebook` if you use notebook) here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here.
If using JupyterLab
- JupyterLab version:
Installed Labextensions
Paste the output from your command line running `jupyter labextension list`.