How to turn on the debugger button in Jupyter Lab

Viewed 5475

I am using jupyter lab and trying to embedd the debugger in it.

Windows 10, 64 bit

Here are the steps I followed:

conda create --name ml python=3.8.2
conda activate ml
conda install xeus-python notebook jupyterlab -c conda-forge

jupyter labextension install @jupyterlab/debugger

Then I start jupyter lab and it opens in Google Chrome:

Though I get the debugger button in xpython notebook but I am not able to turn it on. Here is the screenshot.

enter image description here

Can someone help how to turn on the debugger??

2 Answers

A kernel with support for debugging is required to be able to use the debugger. Currently xeus-python is such a kernel, but the default IPython kernel will support the debugger soon too.

It is generally recommended to create a new conda environment to install the dependencies:

conda create -n jupyterlab-debugger -c conda-forge xeus-python notebook jupyterlab

conda activate jupyterlab-debugger

If running an old version of JupyterLab (2.x) you will also need to install nodejs to install the extension manually (note that it comes-preinstalled since JupyterLab 3.x so you do not need to run the commands below if using up-to date JupyterLab):

conda install nodejs
jupyter labextension install @jupyterlab/debugger

I am suspecting that it may be to do with versioning issues or have not met the prerequisites. There are also no reported similar issues so it must be to do with your system.

Make sure you meet these

JupyterLab 2.0+ xeus-python 0.7.1+ notebook 6+

And also consider doing a fresh install of Anaconda. This fixes it in most cases.

Related