You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jupyterlab wants to handle Ctrl-C but it doesn't get a chance to do it when started from uv run.
Steps to reproduce
uv init jptest
cd jptest
uv run --with jupyterlab jupyter-lab
Wait 3 seconds
Ctrl-C
Jupyterlab prints something like this
Shut down this Jupyter server (y/[n])? [W 2024-07-21 15:57:14.911 LabApp] Could not determine jupyterlab build status without nodejs
[I 2024-07-21 15:57:19.915 ServerApp] No answer for 5s:
[I 2024-07-21 15:57:19.915 ServerApp] resuming operation...
No input reaches jupyterlab after the Ctrl-C, so it doesn't get an answer to its y/[n] question.
Depending on circumstances jupyterlab is either continuing to run or shutting down in the background. uv run seems to terminate itself and leave its child process running.
Both jupyterlab and uv run receive the signal? In the Expected behaviour, jupyterlab should handle this signal alone (and it does so using the prompt in the output)?
I think a good solution to this would also solve the ipykernel launch problem mentioned in #3095.
rye run handles this one as expected. pdm run doesn't let jupyter-lab handle the signal but at least jupyter-lab is not left running detached.
Wish would be that it works the same way as if the user is running .venv/bin/jupyter-lab, if that's possible.
The text was updated successfully, but these errors were encountered:
bluss
changed the title
Ctrl-C to to uv run is not reaching the process
Ctrl-C to to uv run is not handled by the child process
Jul 21, 2024
uv 0.2.27
platform: linux (x86_64)
Jupyterlab wants to handle Ctrl-C but it doesn't get a chance to do it when started from uv run.
Steps to reproduce
Jupyterlab prints something like this
No input reaches jupyterlab after the Ctrl-C, so it doesn't get an answer to its y/[n] question.
Depending on circumstances jupyterlab is either continuing to run or shutting down in the background.
uv run
seems to terminate itself and leave its child process running.Both jupyterlab and uv run receive the signal? In the Expected behaviour, jupyterlab should handle this signal alone (and it does so using the prompt in the output)?
I think a good solution to this would also solve the ipykernel launch problem mentioned in #3095.
rye run
handles this one as expected.pdm run
doesn't let jupyter-lab handle the signal but at least jupyter-lab is not left running detached.Wish would be that it works the same way as if the user is running
.venv/bin/jupyter-lab
, if that's possible.The text was updated successfully, but these errors were encountered: