Skip to content

Warn users when files override built in packages that could have caused the kernel to fail #7538

Closed

Description

We still have a large number of users running into issues resulting from creating files such as string.py, email.py, os.py, sys.py etc
I think in the past 3 weeks we had 3 users running into this issue.

This causes a lot of issues, kernel don't start or when packages get imported dynamically kernels behave weirdly.

Solution:

  • Keep a hardcoded list of reserved file names (use help('modules') to get a list of all built in modules)
    This should also help Python extension, but not sure it matters as much for Python extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugnotebook-kernelKernels issues (start/restart/switch/execution, install ipykernel)verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions