SoFunction
Updated on 2024-10-29

PyCharm 2019.3 release adds new features at a glance

Python's IDE (Integrated Development Environment Integrated Development Environment) is very much, such as: VS Code, Sublime, NotePad, Python's own editor IDLE, JuPyter, Eclipse + PyDev and so on, but for project development, management, deployment and other slightly larger projects. deployment and other slightly larger projects, pigs feel that PyCharm is still the best to use!

On December 2, 2019, PyCharm received version 2019.3, which will probably be the last major release of 2019, so what new features have been added to this version? Let's take a look!

Source | PyCharm Official Website | Piggy Correction | Cat under Pea Blossom

I. Jupyter

PyCharm has spent 2019 releasing back-to-back2019.12019.22019.3Three major releases to improve Jupyter, which makes many users feel relieved, after all, the current data analysis is more fire, the use of Jupyter Notebooks developers are more and more.

Note that this feature is only available in the Pro version!

1. Interactive controls

To provide even more interactivity, Jupyter notebooks support a feature called "interactive controls". These controls support turning static notebooks into interactive panels that allow other users to customize the view when viewing your notebooks.

In this update, PyCharm adds support for interactive controls. This means that window widgets will be rendered along with the output and can be used to manipulate notes just as they would with native Jupyter notebooks.

2. Runtime Code Completion

One of PyCharm's strengths is the ability to implement intelligent coding hints with the help of advanced static code analysis algorithms. However, for dynamic languages like Python, static code analysis is not enough. That's why, in this update, we extend Jupyter with runtime information provided by Jupyter itself. In some cases, such as in dictionary indexes or deeply nested expressions, the IDE can't use static analysis to figure out their types, and this update will make code completion even smarter.

3. Zoom in and out on the output panel

This update supports setting the font size of the preview to match the editor or customizing it in the settings. The editor provides the option "Use Ctrl + mouse wheel to change font size (zoom)". With this option enabled, you can use the mouse wheel to zoom in and out of the preview while holding down Ctrl.

II. Python

1. File path association

Afraid of typos when writing filenames? Especially when there are long filenames such asopen('data/ survey_data_28112019_exported.csv') ? You can now get file path suggestions in the Python code editor or console. We've extended the context-aware code-completion functionality so that string literals associated with files in the context can provide suggestions for possible file paths.

2. Support relative import

Do you prefer relative imports to absolute imports? PyCharm now supports automatically switching between these styles. If you have already imported a package using relative import, all new imports from that package will automatically be created as relative imports.

3.8:TypedDicts

PyCharm avoids incorrect assignment of dictionaries with TypedDict support. Provide a more accurate presentation of your key-value pair structures, and our code editor helps you find the proper way to use them.

3.8: Literals type annotations

Do you have a method that uses a specific string literal, such as the "open" method with file mode? You can use Python 3.8'sLiteralType annotations to check types and also specific values. PyCharm now alerts you when you call a function with an unsupported value.

5. Automatically create pytest tests

We've upgraded our tool for automated test creation to now also support pytest, with which PyCharm allows you to automatically create pytest tests by simply clicking on the "Go To | Test" option in the method declaration menu.

6. Debugger: collection size information

Trace information during debugging should be as clear and detailed as possible. That's why we've adjusted the variable view, which now shows better organized and more comprehensive data. With this, expect new sorting, better visual representation of scientific arrays, display of collection lengths, and removal of duplicate details.

III. Performance Enhancement

1. Faster indexing

PyCharm's advanced code introspection can help you get your work done faster. To do this, we need to index your code and all imported packages. When you use packages with compiled extensions (such as many data science packages), we need to generate a Python skeleton (stub file) describing the Python interface before indexing it. We have improved this process and expect the whole indexing process to be at least 25% faster. Of course, if you use the same package in more than one virtualenv, we will reuse the indexes already created.

2. Reduced number of freezes and improved freeze reporting

Unfortunately, sometimes PyCharm's UI freezes for a while before letting you start working with the code again. We realize that this is very unpleasant, so we're working to eliminate these issues. We've fixed many of the issues that could cause the UI to freeze, and now you can report UI freezes directly from the IDE, which makes it possible for us to investigate the cause of its freezing and make sure it doesn't happen again. Thanks in advance for helping us get rid of the UI freezing issue in PyCharm!

3.More ImprovementsThis year, we've done a lot of work on the startup performance of all JetBrains IDEs. Startup times for our core platform have been further improved in version 2019.3, and we continue to work on making the IDEs start faster. Themes can now be changed without restarting the IDE. This can be done when selecting a pre-installed theme or after downloading a new theme. In PyCharm 2019.3, various improvements for handling events and ignoring files make version control status updates faster. We've made some changes to the way the editor is rendered, and scrolling through a long file is now smoother.

IV. Database support

Note that this feature is only available in the Pro version!

1.Support MongoDB

Are you building an application on MongoDB? Then you'll be happy to learn that you can now view MongoDB collections in PyCharm. Connect to a database by adding a data source from the Database tool window (View | Tool Window | Database).PyCharm Professional Edition comes with all the database features of JetBrains DataGrip, the professional SQL IDE made by JetBrains.

V. IDE Functions

1. Parameterized running configuration

When creating a command-line application, it's often easy to quickly change parameters. While you can go to Edit Configuration to make changes, there is now a better way: using the new Run Configuration macros (variables), PyCharm prompts you for values each time you start your application.

2. Search in selected content

Ever wanted to know how often certain text appears in a certain part of a file? Now the find action will automatically find it in your selected content. Want to search everywhere? Pressing Ctrl-F (Cmd-F on macOS) again will extend the search to the rest of the file.

3. More improvements

If part of the application is written in JavaScript, it is likely that you are using a Handlebars template somewhere. If you have the Handlebars plugin installed, you can now enable Handlebars code intelligence in any Python string. Just press Alt-Enter in the string, select "Insert Language or Reference" and type "Handlebars".

VI. Version control

1. Comparison of improvements with the current branch

The more branches you have, the harder it is to track differences between them. In the new version of PyCharm, the branch comparison feature looks better and allows you to quickly see which commits made the difference between two branches.

2. Improved the UI of the clone code bin

Regardless of which code silo you use, we're now all starting in the same place when you want to pull new items.

3.More improvementsWhen pulling a remote branch, you usually need to create a local branch that tracks that remote branch. In PyCharm 2019.3, there is only one 'checkout' action, which ensures that you see the current state of the remote branch, but without the risk of losing any local commits.PyCharm will always be able to push the branch that you have currently pulled. Sometimes, you may want to push another branch, and from now on, there is no longer a need to check it out first.

VII. Web development

Note that this feature is only available in the Pro version!

CSS class in the

Are you going to use the stylesheet in the CDN? We can now download a version of that stylesheet specifically for code completion.

2. View the value returned by the method when debugging JavaScript

Just like in the Python debugger, the JavaScript debugger can now show you the return value of the method you're calling. To see the return value, click the gear icon on the debugger and enable "Show Return Value".

3. More improvements to set CSS styles to force the use of single or double quotes. Whether you use single or double quotes in your CSS, PyCharm can now help you make the quotes consistent. Configure this in Settings | Editor | Code Style | Style Sheets | CSS in the Other tab. Are you using React components that don't have propTypes defined for them?PyCharm can now infer props and will provide you with code completions for components that don't have propTypes defined.

summarize

The above is a list of new features added to the PyCharm 2019.3 release, which I hope will help you!