Kernel Hangs in OSS-Code Jupyter Plugin when using progress_apply
to apply np.array
#16385
Open
1 of 2 tasks
Labels
bug
Issue identified by VS Code Team member as probable bug
Applies To
What happened?
Using the
tqdm
progress bar withpandas.DataFrame.progress_apply
in the Jupyter plugin for OSS-Code results in a kernel hang after execution. The issue does not occur when running the same code in the JupyterLab web UI with the same environment.Environment info
Steps to Reproduce
Install the required libraries:
Open a Jupyter notebook in OSS-Code.
Run the following minimal reproducible example:
Attempt to run another cell, such as:
Expected Behavior
progress_apply
operation completes successfully.Observed Behavior
progress_apply
operation completes, but an additional thread remains active.Additional Observations
tqdm
.apply
instead ofprogress_apply
resolves the issue, but progress bars are a desired feature.Steps Taken
tqdm
, andpandas
versions).VS Code Version
1.96.3
Jupyter Extension Version
2024.11.0
Jupyter logs
Coding Language and Runtime Version
Python 3.12.8, also 3.10
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
conda 24.11.2
Running Jupyter locally or remotely?
Local
Edit: It seems that ipywidgets must be installed for the issue to occur.
Edit2: It also seems that there is an extra thread hanging around in the Lab webUI, but it does not prevent execution of further cells.
The text was updated successfully, but these errors were encountered: