News

VS Code Python Tool Adds Jupyter Functionality

The Python extension for the Visual Studio Code editor -- installed more than 4.9 million times -- gets some new Jupyter functionality in the December release.

The Jupyter Project is best known for the Jupyter Notebook, described as: "An open-source Web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more."

In the new release of the Python extension for Visual Studio Code, Python developers now have new options for exporting Python files as Jupyter Notebooks.

"This update adds two commands for exporting Python files as Jupyter Notebooks," Microsoft's Dan Taylor announced in a blog post yesterday (Dec. 13). "Along with the export run results command that was shipped in the previous release, the Python extension now offers three Export as Jupyter Notebook options and you can choose the one that is right for your use-case."

The new edition also includes remote Jupyter support. "This release enables you to connect to remote Jupyter servers for execution, so you can offload intensive computation to other machines that have more compute power or have a specific hardware spec that you need," Taylor said.

The changelog details all the changes in the December release, including these listed by Taylor:

  • Update the Microsoft Python language server to 0.1.72/12.1, allowing proper resolution and Go to Definition for namespace packages and relative imports.
  • Load the language server in the background during extension activation.
  • Display progress indicator when activating the language server and validating user setup.
  • Updated logic used to determine whether the Language Server is supported.
  • Allow users to request the 'Install missing Linter' prompt to not show again for pylint.
  • Run in the workspace directory by default for the interactive window.
  • Add support for running Python interactive commands from the command palette.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube