'Debugging of Jupyter notebooks in VsCode
I'm using Visual Studio Code Insiders to work on Jupyter Notebook files. In the default version of VSCode it is possible to debug Jupyter notebook cells. Unfortunately, this is not the case with the insiders version.
This post describes the possibility to switch between the "Native Notebook" and the "Jupyter Notebook".
In my case, adding the line "jupyter.experiments.optOutFrom": ["NativeNotebookEditor"] to my settings.json file and reopen the editor leads to the following error message:
Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
I would be grateful if there is any idea what this error could be due to.
Solution 1:[1]
Adding my comment above as an answer so that it can be marked as an answer:
One thing to check, look in your settings JSON file. And look to see if there is a "workbench.editorAssociations" setting. If there is, you might need to clear that after removing yourself from the native experiment.
Solution 2:[2]
I followed Ian's advice to clear the "workbench.editorAssociations" setting.
After that I had to create a new ipynb by running the command: create new blank notebook
(Shift-Ctrl-P) before my existing notebooks were properly interpreted.
Solution 3:[3]
I just reinstalled the Jupyter extension.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ian Huff |
Solution 2 | dr.Pep |
Solution 3 | El Houcine Es-sanhaji |