Tag Archive for: Python

Python in VS Code Adds Data Viewer for Debugging — Visual Studio Magazine


News

Python in VS Code Adds Data Viewer for Debugging

The January 2021 update to the Python Extension for Visual Studio Code is out with a short list of new features headed by a data viewer used while debugging.

Python for VS Code comes with the

Python extension
in the code editor’s marketplace, which has been installed a whopping 30.3 million times, making it the most popular tool in the marketplace by far. It provides linting, debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests and more.

Updated monthly, its latest release closed 13 issues and includes an improvement to the Pylance language server and the new debugging data viewer.

“The data viewer in the Jupyter and Python extensions allow for easier and cleaner visualization of data when using Jupyter notebooks in VS Code,” the dev team said. “We’re excited to announce that in this release we added support for the data viewer when debugging Python files as well!

“To try it out, you will need to have pandas installed in the selected environment for your workspace. Then, you can just add a breakpoint after the line of the variable you want to inspect, hit F5 and select Python File from the configuration menu.”

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

The release also provides PYTHONPATH support with Pylance, the language server introduced last summer to provide Python-specific “smarts” for IntelliSense and such.

“This release includes support to allow you to use the PYTHONPATH variable in .env files with Pylance for improved import resolution,” Microsoft said. “If you’re a Pylance user, your PYTHONPATH specified in .env files is now read alongside any paths included in python.analysis.extraPaths as an import root. In addition, editing the .env file will now update environment variables without any need for a reload.”

A few more minor tweaks include:

Source…

Devs unknowingly use “malicious” modules snuck into official Python repository

Enlarge (credit: Cedar101)

The official repository for the widely used Python programming language has been tainted with modified code packages, a computer security authority in Slovakia warned. The authority also said the packages have been downloaded by unwitting developers who incorporated them into software over the past three months.

Multiple code packages were uploaded to the Python Package Index, often abbreviated as PyPI, and were subsequently incorporated into software multiple times from June through this month, Slovakia’s National Security Authority said in an advisory published Thursday. The unidentified people who made available the code packages gave them names that closely resembled those used for packages found in the standard Python library. The packages contained the exact same code as the upstream libraries except for an installation script, which was changed to include a “malicious (but relatively benign) code.”

“Such packages may have been downloaded by unwitting developer[s] or administrator[s] by various means, including the popular ‘pip’ utility (pip install urllib),” Thursday’s advisory stated. “There is evidence that the fake packages have indeed been downloaded and incorporated into software multiple times between June 2017 and September 2017.”

Read 9 remaining paragraphs | Comments

Biz & IT – Ars Technica

Border agents go all Monty Python on visa-holding software engineer

There have been more egregious episodes of U.S. border agents hassling and/or needlessly detaining citizens and valid visa-holders since the White House changed hands, but perhaps none has been more bizarre – or even darkly comical – than this one.

Celestine Omin, a 28-year-old software engineer from Lagos, Nigeria, was traveling to the U.S. on Sunday as part of his job with Andela, a startup backed by Facebook’s Mark Zuckerberg and Priscilla Chan. Upon arrival at JFK Airport, he was questioned by one border agent, waited for an hour, and then was brought to a different room to be questioned by a second agent. From a LinkedIn story:

To read this article in full or to leave a comment, please click here

Network World Security