FYI:
- issue tracking the warning: python 3.11 debugpy error messages · Issue #1198 · ipython/ipykernel · GitHub
- PR fixing it: Disable frozen modules by default, add a toggle by krassowski · Pull Request #1213 · ipython/ipykernel · GitHub
I would appreciate if anyone affected, especially Windows users, could confirm that adding "-Xfrozen_modules=off",
as a second argument of argv
list in kernel.json
of their kernelspec (run jupyter kernelspec list
from terminal to find where these are located) solves the problem and does not introduce any problems.
For example, the change could look like:
{
"argv": [
"python",
+ "-Xfrozen_modules=off",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3 (ipykernel)",
"language": "python",
"metadata": {
"debugger": true
}
}