News

VS Code Python Tool Now Debugs Jupyter Notebooks

The October 2021 update to Python in Visual Studio Code continues to boost notebook functionality, now adding the ability to debug Jupyter Notebooks.

The whole Jupyter Notebooks experience was revamped with the August 2021 release, and the dev team has been improving things since then in the Python extension for Visual Studio Code, by far the most popular tool in the code editor's marketplace, with more than 43 million installs.

In the new October 2021 announcement, debugging support was unveiled. "To try it out, make sure you have ipykernel v6+ installed in your selected kernel," said Luciana de Melo e Abud, program manager for the Python tool, in an Oct. 7 blog post. "Then set a breakpoint, select the Debug Cell command from the drop-down menu next to the play button and start inspecting your code with all the features the debugger has to offer!"

Jupyter Notebook Debugging in Animated Action
[Click on image for larger, animated GIF view.] Jupyter Notebook Debugging in Animated Action (source: Microsoft).

Debugging was also improved for Python projects in general. "When working with workspaces with no launch.json configuration present, the Python extension would display a debugger configuration menu every time you would debug your Python file or project," de Melo e Abud said. "This could be particularly annoying when debugging a web application with custom arguments (like Flask, Django or FastAPI, for example). Now you no longer need to provide a configuration every time you start debugging, as the first selection you make is reused for the rest of the session."

Also new is a Python walkthrough that details basic setup steps to improve the getting-started experience for Python in VS Code, including debugging Python files. It also covers installation, selecting an interpreter for a project and more.

Other changes and enhancements (with links to the related GitHub issues) include:

  • python.testing.cwd setting is no longer ignored when discovering or running tests. (#8678)
  • Upgraded to Jedi 0.18 and enabled it behind the language server protocol. Remove Jedi-related settings python.jediMemoryLimit and python.jediPath, since they are not used with the new language server implementation. (#11995)
  • Removed support for rope, ctags and pylintMinimalCheckers setting. Refactoring, syntax errors and workspace symbols are now supported via language servers. (#10440, #13321, #16063)
  • Default value of python.linting.pylintEnabled has been changed to false. (#3007)

All of the changes (88 issues were closed) are detailed in the GitHub changelog.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube