-
Notifications
You must be signed in to change notification settings - Fork 325
Kernel crashes
Jupyter Kernels can crash for a number of reasons and at different points of execution phases in a notebook. The two distinct phases are Starting a Kernel for the first time and Running a cell after a kernel has been started. This page categorizes failures in to the above two categories to aid users in identifying causes for kernel crashes with the intention of being able to address those issues.
It has been observed that the most common cause (if not the only cause) of failures for random kernel crashes after it has started is due to incorrectly installed packages. For instance we've found that kernels can crash if tensorflow
has been incorrectly installed.
- Kernel crashes when using tensorflow
- Kernel crashes when using numpy
- Kernel crashes when using fastparquet
- IPyKernel and other dependencies are not installed
- Outdated version of IPython
- Outdated version of IPyKernel
- Failure to start kernel due to missing package pip
- Failure to start kernel when using Conda Environments
- ipykernel & other dependencies are installed, yet I am asked to install these dependencies
- Built in modules overridden by user code
- Module not installed
- Failure to import modules
- Dll load failures
- Errors with Win32api module
- Errors with pyzmq module
- Kernels fail to start as ports are blocked
- Cell fails to complete execution when using IPython 8.0 and pygments < 2.4.0
Notes:
- All error information can be found in the Jupyter output panel accessed via the the command
Jupyter: View Outupt
. - When installing packages always consider using
%pip install
instead of!pip install
in the cells. - When installing packages into conda environments consider using
%conda install
instead of!conda install
in the cells. - Always activate the terminal with the environment associated with the Kernel.
Known issues
Please up-vote these issues to help us prioritize getting these addressed.
- Contribution
- Source Code Organization
- Coding Standards
- Profiling
- Coding Guidelines
- Component Governance
- Writing tests
- Kernels
- Intellisense
- Debugging
- IPyWidgets
- Extensibility
- Module Dependencies
- Errors thrown
- Jupyter API
- Variable fetching
- Import / Export
- React Webviews: Variable Viewer, Data Viewer, and Plot Viewer
- FAQ
- Kernel Crashes
- Jupyter issues in the Python Interactive Window or Notebook Editor
- Finding the code that is causing high CPU load in production
- How to install extensions from VSIX when using Remote VS Code
- How to connect to a jupyter server for running code in vscode.dev
- Jupyter Kernels and the Jupyter Extension