1. IT-Security >
  2. Programmierung >
  3. Python in Visual Studio Code ? December 2018 Release


ArabicEnglishFrenchGermanGreekItalianJapaneseKoreanPersianPolishPortugueseRussianSpanishTurkishVietnamese

Python in Visual Studio Code – December 2018 Release

RSS Kategorie Pfeil Programmierung vom | Quelle: blogs.msdn.microsoft.com Direktlink öffnen

We are pleased to announce that the December 2018 release of the Python Extension for Visual Studio Code is now available. You can download the Python extension from the Marketplace, or install it directly from the extension gallery in Visual Studio Code. You can learn more about Python support in Visual Studio Code in the documentation.

This release was a short release, where we primarily focused on two top-requested features for the data science experience shipped in November: remote Jupyter support and export Python files as Jupyter Notebooks. We have also fixed many issues reported on GitHub, and you can see the full list in our changelog.

Keep on reading to learn more!

Remote Jupyter Support

This release enabled connecting to remote Jupyter servers for execution, so you can offload intensive computation to other machines that have more compute powers or those that have the right hardware spec you need.

To connect to a remote Jupyter server, run this new command Python: Specify Jupyter server URI in the Visual Studio Code Command Palette.

Then you will be asked to enter the hostname and a token for authentication.

You can find the token in the terminal when you start a Jupyter Notebook server with token authentication enabled. The token is generated and logged to the terminal. For example:

[I 11:59:16.597 NotebookApp] The Jupyter Notebook is running at:
http://localhost:8888/?token=c8de56fa4deed24899803e93c227592aef6538f93025fe01

Copy the URL in the terminal and then paste into VS Code.

Cells will now be executed using the remote Jupyter server, and you can see that information in the Interactive window. Here is an example of a Windows machine connecting to a Linux VM for execution (the real URI is blurred out for security reasons ?):

Token-based authentication is on by default for notebook 4.3 and later. This document has more details on Security in the Jupyter notbeook server.

Export Python files as Jupyter Notebooks

This update added two commands for exporting Python files as Jupyter Notebooks. 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.

After exported, you will see a message box with a button “Open in browser”, which can open the exported notebook file locally in a browser.

Other Changes and Enhancements

We have also added small enhancements and fixed issues requested by users that should improve your experience working with Python in Visual Studio Code. The full list of improvements is listed in our changelog; some notable changes include:

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

Be sure to download the Python extension for Visual Studio Code now to try out the above improvements. If you run into any problems, please file an issue on the Python VS Code GitHub page.

 

...

Webseite öffnen Komplette Webseite öffnen

Newsbewertung

Kommentiere zu Python in Visual Studio Code ? December 2018 Release






Ähnliche Beiträge

  • 1. CentOS Blog: CentOS Pulse Newsletter, January 2019 (#1901) vom 920.92 Punkte ic_school_black_18dp
    Dear CentOS enthusiast, We wish you a happy and prosperous 2019, full of CentOS! Releases and updates SIG updates Events Contributing to the newsletter Releases and updates December was a very busy month for releases and updates. The following releases a
  • 2. CentOS Blog: CentOS Pulse Newsletter, January 2019 (#1901) vom 920.92 Punkte ic_school_black_18dp
    Dear CentOS enthusiast, We wish you a happy and prosperous 2019, full of CentOS! Releases and updates SIG updates Events Contributing to the newsletter Releases and updates December was a very busy month for releases and updates. The following releases a
  • 3. CentOS Blog: CentOS Pulse Newsletter, January 2019 (#1901) vom 920.92 Punkte ic_school_black_18dp
    Dear CentOS enthusiast, We wish you a happy and prosperous 2019, full of CentOS! Releases and updates SIG updates Events Contributing to the newsletter Releases and updates December was a very busy month for releases and updates. The following releases a
  • 4. Using Visual Studio for Cross Platform C++ Development Targeting Windows and Linux vom 726.55 Punkte ic_school_black_18dp
    A great strength of C++ is the ability to target multiple platforms without sacrificing performance. If you are using the same codebase for multiple targets, then CMake is the most common solution for building your software. You can use Visual Studio fo
  • 5. Malcolm - A Powerful, Easily Deployable Network Traffic Analysis Tool Suite For Full Packet Capture Artifacts (PCAP Files) And Zeek Logs vom 640.43 Punkte ic_school_black_18dp
    Malcolm is a powerful network traffic analysis tool suite designed with the following goals in mind: Easy to use – Malcolm accepts network traffic data in the form of full packet capture (PCAP) files and Zeek (formerly Bro) logs. These artifacts can be
  • 6. Uncompyle6 - A Cross-Version Python Bytecode Decompiler vom 547.74 Punkte ic_school_black_18dp
    A native Python cross-version decompiler and fragment decompiler. The successor to decompyle, uncompyle, and uncompyle2. Introductionuncompyle6 translates Python bytecode back into equivalent Python source code. It accepts bytecodes from Python version
  • 7. Get to code: How we designed the new Visual Studio start window vom 546.8 Punkte ic_school_black_18dp
    By now, many of you may have noticed a very prominent change to the launch of Visual Studio in Visual Studio 2019 Preview 1. Our goal with this new experience is to provide rapid access to the most common ways that developers get to their code: whether it
  • 8. Get to code: How we designed the new Visual Studio start window vom 546.8 Punkte ic_school_black_18dp
    By now, many of you may have noticed a very prominent change to the launch of Visual Studio in Visual Studio 2019 Preview 1. Our goal with this new experience is to provide rapid access to the most common ways that developers get to their code: whether it
  • 9. Announcing TypeScript 3.2 vom 543.95 Punkte ic_school_black_18dp
    TypeScript 3.2 is here today! If you’re unfamiliar with TypeScript, it’s a language that brings static type-checking to JavaScript so that you can catch issues before you even run your code – or before you even save your file. It also includes the late
  • 10. Making every developer more productive with Visual Studio 2019 vom 536.27 Punkte ic_school_black_18dp
    Today, in the Microsoft Connect(); 2018 keynote, Scott Guthrie announced the availability of Visual Studio 2019 Preview 1. This is the first preview of the next major version of Visual Studio. In this Preview, we’ve focused on a few key areas, such a
  • 11. Performance Improvements in Visual Studio 2019 vom 485.67 Punkte ic_school_black_18dp
    Performance has been a big focus area for Visual Studio 2019, with improvements in many areas, including: Faster Visual Studio startup Faster branch switching experience in Visual Studio C++ open folder – time to IntelliSense improvements Faster C++ compiler
  • 12. Try out Nullable Reference Types vom 457.16 Punkte ic_school_black_18dp
    Try out Nullable Reference Types With the release of .NET Core 3.0 Preview 7, C# 8.0 is considered "feature complete". That means that the biggest feature of them all, Nullable Reference Types, is also locked down behavior-wise for the .NET Core release. It wi