Why does Jupyter Lab show "Kernel Restarting" when importing pandas?
Reason: The kernel restarts because a fatal error (crash) occurs in the Python process.
Common causes:
- A conflict or corruption in installed packages (e.g. incompatible versions of
pandas
and numpy
).
- Problems with the Python installation or package files (damaged or incomplete files).
- Errors in extensions or dependencies used with
pandas
.
- Conflicts in the environment (multiple or incompatible versions of libraries or Python).
When importing pandas
triggers such an error, the Python interpreter crashes, and Jupyter automatically restarts the kernel — this is why you see "Kernel Restarting."