Announcing PyCharm 5 EAP 143.308: Thread Concurrency Visualization
Today we bring you PyCharm 5 EAP build 143.308 with Thread Concurrency Visualization for multi-threaded applications, App Config Tool for Google App Engine projects, support for IPython Notebook v4, and a lot of other important enhancements.
The star feature in this build is Thread Concurrency Visualization.
Note: Thread Concurrency Visualization is available only in PyCharm Professional Edition.
With this brand new functionality, you can take full control over your multi-threaded applications. To get started, note the new Concurrency Diagram button in the toolbar next to the Run, Debug, Coverage and Profile buttons:
Click this button to run your application with the current run/debug configuration in the special Concurrency Diagram mode which shows you the real time states of threads inside your running process:
On the left-hand side you can see the list of thread names, and on the right the waiting time for each thread.
Different states are marked with different colors on the diagram. You can zoom in and out using magnifier icons on the left side of the window or with Ctrl + mouse wheel. Click on the diagram to see the related stack frame:
You can also navigate to a particular line in code from the stack frame.
Right-click on the diagram to open a context menu showing waiting time periods for the same lock. Related waiting time periods stay in the same color, while unrelated are faded:
Concurrency visualization also works well with the asyncio module which was introduced in Python 3.4. Simply run your application that makes use of asyncio with the same Concurrency Diagram button and switch to the ‘Asyncio graph’ tab:
Other notable improvements in this build include:
- App Config Tool for Google App Engine projects, which is available from Tools | Google App Engine | Run appcfg.py task:
This new tool introduces a new user interface and provides autocompletion for appcfg.py tasks and their arguments. The App Config Tool also preserves the command history so you can easily fetch previous commands just by pressing Up / Down arrows. Quick documentation is also available by pressing Ctrl+Q on a appcfg.py command.
Note: GAE support is available only in PyCharm Professional Edition.
- Injection of the Python language into type hinting comments:
According to PEP-0484, PyCharm treats the type hinting code inside comments as Python code. It provides navigation and quick documentation for it, and related imports are now marked as used.
And some more:
- PyCharm now supports IPython Notebook v4.
- PyCharm uses a single ‘Updating skeletons’ task for newly installed packages, which improves performance on indexing and fixes various bugs.
- Docker support has been enhanced, and Remote interpreter fixes are available.
For the full list of changes and improvements, please check the Release Notes.
You can download the build or use the patch-based upgrade to upgrade from within the IDE (from previous PyCharm 5 EAP builds only) without a full re-installation. Just make sure you’ve selected the EAP channel in update settings.
Develop with pleasure!
JetBrains PyCharm Team
Subscribe to Blog updates
Thanks, we've got you!
PyCharm 2023.3 Early Access Program Is Open!
UI/UX Enhancements, Support for PEP 647, and More The Early Access Program for PyCharm 2023.3 kicks off today, offering you a sneak peek of the exciting new features and improvements we expect to include in the next major release. If you’re not familiar with how the EAP works, please read this…
PyCharm 2023.2 EAP 5: Black Formatter Integration, Endpoints Tool Window for Django REST Framework
This EAP build includes the Black formatter integration, a new Endpoints tool window for Django REST framework, the Run Anything tool, support for installing dependencies from pyproject.toml, inlay parameter name hints, and much more!
PyCharm 2023.2 EAP 4 Is Out!
The third EAP build brings improvements that include the new AI assistant and support for DevContainers.