Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the new features of PyCharm 2019.3

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what the new features of PyCharm 2019.3 are, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. Jupyter

PyCharm released three major versions 2019.1, 2019.2 and 2019.3 successively in 2019 to improve Jupyter, which makes many users feel gratified. After all, data analysis is popular and more and more developers are using Jupyter Notebooks.

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

1. Interactive control

To provide more interactivity, Jupyter notebooks supports features called "interactive controls." These controls support turning a static notebook into an interactive panel so that other users can customize the view when viewing your laptop.

In this update, PyCharm adds support for interactive controls. This means that the widget will be rendered with the output and can be used to manipulate notes in the same way as native Jupyter notebooks.

two。 Runtime code completion

One of the advantages of PyCharm is that intelligent coding hints can be realized with the help of advanced static code analysis algorithms. However, for dynamic languages such as Python, static code analysis is not enough. That's why, in this update, we extend it using the runtime information provided by Jupyter itself. In some cases, such as in dictionary indexes or deeply nested expressions, IDE cannot use static analysis to find its type, and this update will make code completion smarter.

3. Zoom in and out on the output panel

This update supports setting the font size of the preview to be the same as the editor, or customizing it in the settings. The editor provides the option to use Ctrl + mouse wheel to change the font size (zoom). When enabled, you can press and hold Ctrl while using the mouse wheel to zoom in or out the preview.

2. Python1. File path association

Afraid of typos when writing file names? Especially if you have a long file name, such as open ('data/ survey_data_28112019_exported.csv')? You can now get file path suggestions in the Python code editor or the console. We have extended context-aware code completion, so the literal amount of strings associated with the file in the context can provide advice on possible file paths.

two。 Support for relative import

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

3.Python 3.8:TypedDicts

PyCharm avoids incorrect dictionary assignments by supporting TypedDict. To provide a more accurate display of your key value pair structure, our code editor can help you find the appropriate way to use it.

4.Python 3.8: notes on literal quantity types

Do you use a specific literal amount of strings, such as "open" with file mode? You can use the Literal type annotations of Python 3.8 to check types, and you can also check specific values. Now, PyCharm will alert you when the function you call has an unsupported value.

5. Automatically create pytest tests

We upgraded the tool for automatically creating tests and now support pytest as well. With this, PyCharm allows you to automatically create a pytest test by simply clicking the "Go To | Test" option in the method declaration menu.

6. Debugger: size information for collections

The tracking information during debugging should be as clear and detailed as possible. This is why we adjust the variable view, which now displays better organized and more comprehensive data. With this, you can expect new sorting, better visual representation of scientific arrays, display of set length, and removal of repetitive details.

Third, the performance is improved by 1. Faster indexing

PyCharm's advanced code vision can help you get your work done faster. To do this, we need to index your code and all imported packages. When you use compiled and extended packages (such as many data science packages), we need to generate a Python skeleton (stub file) that describes the Python interface before indexing it. We have improved this process and expect the entire indexing process to be at least 25% faster. Of course, if you use the same package in multiple virtualenv, we will reuse the index that has been created.

two。 Reduced number of freezes and improved freeze reports

Unfortunately, sometimes PyCharm's UI freezes for a while before you start working on the code again. We realize that this is a very unpleasant thing, so we are trying to eliminate these problems. We have fixed many problems that could lead to the UI freeze, and now you can report the UI freeze directly from IDE, which makes it possible for us to investigate the cause of the freeze and make sure it doesn't happen again. Thank you in advance for helping us get rid of the UI freeze in PyCharm!

3. More improvements

This year, we have done a lot of work on the startup performance of all JetBrains IDE.

The startup time of our core platform has been further improved in version 2019.3, and we will continue our efforts to make IDE start faster.

You can now change the theme without restarting IDE.

You can do this when you select a pre-installed theme or after you download a new theme.

In PyCharm 2019.3, various improvements to handling events and ignoring files make versioning status updates faster.

We have made some changes to the way the editor is rendered, and now scrolling through a long file becomes smoother.

IV. Database support

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

1. Support for MongoDB

Do you want to build applications on MongoDB? Then you will be pleased to know that you can now view the MongoDB collection in PyCharm. Connect to the database by adding a data source from the database tools window (View | tools window | Database). PyCharm Professional Edition comes with all the database functions of JetBrains DataGrip (a professional SQL IDE made by JetBrains).

5. IDE function 1. Parameterized running configuration

When you create a command-line application, you can usually change parameters quickly and easily. Although you can go to "Edit configuration" to make changes, there is a better way to use a new running configuration macro (variable) where PyCharm prompts you for a value each time you start the application.

two。 Search in the selection

Do you want to know how often some text appears in some part of the file? Now, in your selection, the find action will be looked up automatically. Want to search everywhere? Pressing Ctrl-F again (Cmd-F on macOS) extends the search to the rest of the file.

3. More improvements

If part of the application is written in JavaScript, chances are that you are using the Handlebars template somewhere. If the Handlebars plug-in is installed, you can now enable Handlebars code intelligence in any Python string. Simply press Alt-Enter in the string, select insert language or reference, and then type Handlebars.

6. Version control 1. Comparison with the improvement of the current branch

The more branches you have, the harder it is to track the differences between them. In the new version of PyCharm, branch comparison looks better and gives you a quick idea of which commits make a difference between the two branches.

two。 Improved UI of cloned code warehouse

No matter what kind of code warehouse you use, when you want to pull a new project, we all start in the same place now.

3. More improvements

When pulling a remote branch, you usually need to create a local branch that tracks the remote branch.

In PyCharm 2019.3, there is only one 'checkout' operation, which ensures that you see the current status of the remote branch, but there is no risk of losing any local submissions.

PyCharm can always push the branches you have currently pulled.

Sometimes, you may have to push another branch, and from now on, you no longer need to check it out first.

VII. Web development

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

CSS class in 1.CDN

Do you want to use the stylesheet in CDN? Now we can download a version of the stylesheet dedicated to code completion.

two。 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 are calling. To view the return values, click the gear icon on the debugger, and then turn on Show return values.

3. More improvements

Set the CSS style to force the use of single or double quotation marks.

Whether you use single or double quotes in CSS, PyCharm can now help you keep quotation marks consistent.

Configure it in Settings | Editor | Code Style | Style Sheets | CSS in the Other tab.

Do you use React components for which there is no propTypes defined?

PyCharm can now infer props and will provide you with code completion for components that do not define propTypes.

These are all the contents of the article "what are the new features of PyCharm 2019.3". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report