我正在使用 jupyter lab 并尝试嵌入debugger
in it.
Windows 10, 64 bit
以下是我遵循的步骤:
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
然后我开始jupyter lab
它在 Google Chrome 中打开:
虽然我得到了调试器按钮xpython
笔记本电脑,但我无法打开它。
这是屏幕截图。
![enter image description here](https://i.stack.imgur.com/g4574.png)
有人可以帮助如何打开调试器吗?
需要支持调试的内核才能使用调试器。目前 xeus-python 就是这样一个内核,但默认的 IPython 内核也将很快支持该调试器。
一般建议新建一个conda环境来安装依赖:
conda create -n jupyterlab-debugger -c conda-forge xeus-python notebook jupyterlab
conda activate jupyterlab-debugger
如果运行旧版本的 JupyterLab (2.x),您还需要安装nodejs
手动安装扩展(请注意,它从 JupyterLab 3.x 开始就已预安装,因此如果使用最新的 JupyterLab,则无需运行以下命令):
conda install nodejs
jupyter labextension install @jupyterlab/debugger
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)