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
I often install kernels from project virtualenvs (my-project/.venv/) that eventually get removed. I can manually remove a kernelspec with jupyter kernelspec remove my-project but forget to do this, then forget the missing kernel name, etc. Instead, I use a script that checks if the python executable the kernel points to exists, and if it doesn't, removes the kernel. A command jupyter kernelspec remove --missing would save users (myself) some pain.
Alternatively, it might be simpler to add jupyter kernelspec list --missing which would list out kernels with missing python interpreters, and a user can pipe this to jupyter kernelspec remove.
I'd be happy to attempt a PR with one or both of these features if you agree. Thanks!
The text was updated successfully, but these errors were encountered:
wpk-nist-gov
changed the title
Add jupyter kernelspec remove --missing to remove all missing kernels.
Add jupyter kernelspec list/remove--missing to list/remove all missing kernels.
Mar 13, 2024
wpk-nist-gov
changed the title
Add jupyter kernelspec list/remove--missing to list/remove all missing kernels.
Add jupyter kernelspec list/remove --missing to list/remove all missing kernels.
Mar 13, 2024
I often install kernels from project virtualenvs (
my-project/.venv/
) that eventually get removed. I can manually remove a kernelspec withjupyter kernelspec remove my-project
but forget to do this, then forget the missing kernel name, etc. Instead, I use a script that checks if the python executable the kernel points to exists, and if it doesn't, removes the kernel. A commandjupyter kernelspec remove --missing
would save users (myself) some pain.Alternatively, it might be simpler to add
jupyter kernelspec list --missing
which would list out kernels with missing python interpreters, and a user can pipe this tojupyter kernelspec remove
.I'd be happy to attempt a PR with one or both of these features if you agree. Thanks!
The text was updated successfully, but these errors were encountered: