-
Notifications
You must be signed in to change notification settings - Fork 294
Failure to start kernel due to failures in importing modules from files
Don Jayamanne edited this page Mar 28, 2023
·
4 revisions
Python kernels can fail to start if some modules such as pytprocess
ipykernel
, pyzmq
, etc fail to load due to improper installation, or upgrading one module and not the related dependencies or the like.
Sometimes, user code such as os.py
or random.py
could also prevent the kernel from starting.
- Please ensure you do not have any user code that's overriding any built in modules.
- See here for more info Failure to start Kernel due to built in modules being overridden by user code
- Please consider installing the modules that could not be imported.
- If they have already been installed, its possible it hasn't been installed correct, hence try the reinstall option as follows:
# if using a non-conda environment
python -m pip install <xyz> -U --force-reinstall
# If using a conda environment
conda install --name <environment name> --update-deps --force-reinstall
- 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