Visual Studio Code Python Update Revolves Around Jupyter

Microsoft's monthly update of Visual Studio Code's Python tooling revolves around Jupyter, an interactive development environment catering to data science and scientific computing.

In VS Code, Jupyter technology is used to provide such an interactive environment for Python. "Jupyter (formerly IPython) is an open-source project that lets you easily combine Markdown text and executable Python source code on one canvas called a notebook," the company says. "Visual Studio Code supports working with Jupyter Notebooks natively, as well as through Python code files."

Jupyter functionality has been improved in multiple ways in the January 2020 release of the Python Extension for Visual Studio Code, which is now available from the Marketplace or via the extension gallery in the editor.

Here's a look at the two main improvements as detailed in a Jan. 7 blog post:

  • Kernel selection in Jupyter Notebooks: "In the top right of the Notebook Editor and the Interactive Window, you will now be able to see the current kernel that the notebook is using along with the kernel status (i.e. whether it is idle, busy, etc…). This release also allows you to change your kernel to other Python kernels. To change your current active kernel, click on the current kernel to bring up the VS Code kernel selector and select which kernel you want to switch to from the list."
  • Performance improvements in the Jupyter Notebook editor: "This release includes many improvements to the performance of Jupyter in VS Code in both the Notebook editor and the Interactive Window. This was accomplished through caching previous kernels and through optimizing the search for Jupyter. Some of the significant improvements due to these changes are:

    • Initial starting of the Jupyter server is faster, and subsequent starts of the Jupyter server are more than 2X faster
    • Creating a blank new Jupyter notebook is 2X faster
    • Opening Jupyter Notebooks (especially with a large file size) is now 2x faster

Microsoft says your improvement mileage may vary from theirs.

The release also tweaks functionality for auto-activating environments in the terminal upon loading. Developers can now choose to have environments be auto-activated in an already open terminal when the extension is loaded.

The release also fixes various issues, including an upvoted bug report dealing with the rebuilding of ctags on save and on start. The ctags tool generates workspace symbols -- such as functions -- for users, populating the document outline with file symbols to help coders more easily find them in the workspace. For Python, ctags helps coders jump to defined functions and other symbols in C/C++ extension modules. Developers can now have tags rebuilt when the Python extension loads or rebuilt for every file save.

Microsoft's VS Code dev team long ago went all in on Python, making it a focal point for language support. In 2017, Microsoft hired the creator of the extension, Don Jayamanne, and subsequently put out ads for more Python help. At that time, the Python extension had been downloaded about 4.2 million times. At the time of this writing, it has been downloaded more than 15 million times, earning an average 4.4 rating (out of 5) from 292 developers who reviewed and rated it.

The full list of changes in the new update are available in the changelog.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • C# Slides in Usage Ranking of Programming Languages

    "The fact that C# lost three places in the ranking of language communities during the last three years is mostly explained by its slower growth compared to C/C++ and PHP."

  • Telerik UI for Blazor Updated

    Progress announced an update to its Telerik UI for Blazor components, targeting Microsoft's open source Blazor framework that lets C# coders create web apps without having to rely upon JavaScript.

  • Infragistics Unveils UI Components for Blazor

    Infragistics, specializing in third-party UI/UX controls and tools, unveiled a new offering targeting Blazor, Microsoft's red-hot open source framework that allows for C#-based web development instead of traditional mainstay JavaScript.

  • AWS Open Sources Tool for Porting .NET Framework Apps to .NET Core

    Leading cloud computing platform Amazon Web Services open sourced the it announced in July for helping users port old .NET Framework applications to the new .NET Core framework.

  • Uno Platform Ports Windows Calculator to Linux

    Uno Platform has ported the famed Windows Calculator, open sourced last year, to Linux as part of a continuing "proof point" effort to demonstrate the reach of what it describes as the sole UI offering available to target Windows, WebAssembly, iOS, macOS, Android and Linux with single-codebase applications coded in C# and XAML.

Upcoming Events