Skip to content

Debugger always disabled with ipykernel 6.4.0? #770

Closed
@jtpio

Description

@jtpio

Using the latest 6.4.0 version of ipykernel, it looks like the debugger is always disabled.

This was first noticed on Binder using this gist: https://gist.github.com/jtpio/6ce26381703355e0ef1da4af742b7f72

But can be reproduced locally:

mamba create -n tmp python -y
conda activate tmp

# install the latest versions
python -m pip install -U ipykernel debugpy jupyterlab

# start JupyterLab
jupyter lab

The spec seems to be installed with debugger: false on disk:

$ cat ${CONDA_PREFIX}/share/jupyter/kernels/python3/kernel.json
{
 "argv": [
  "python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "Python 3 (ipykernel)",
 "language": "python",
 "metadata": {
  "debugger": false
 }
}

And the kernelspecs return debugger: false for ipykernel at startup:

image

Dependencies:

$ pip list | grep -E "debugpy|ipykernel"
debugpy             1.4.1
ipykernel           6.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions