What’s New in PyCharm 2019.1
All-new direct Jupyter Notebook editing and running, a keymap for Sublime Text, and much more
We’ve made it easier to edit the code in your Notebook: as you’re editing the notebook, the source looks like a regular Python file. This makes light work out of navigating around your code. Of course, round trip editing is supported, and all changes made in either PyCharm or the browser will be reflected immediately.
Jupyter Notebooks are great at helping you explore and interact with your data. With PyCharm, Jupyter Notebooks are now even easier to use, as you can quickly run and debug cells from your notebook in the IDE. Of course, many of the hotkeys from in-browser notebooks also work in PyCharm. For example, use Shift+Enter to run the highlighted cell, and select the one below.
Get started with your notebooks quicker. With PyCharm you don’t need to start your server or kernel manually: just open a notebook and run a cell. PyCharm automatically starts the server and appropriate kernel for the notebook you’ve opened.
If you’ve lost track of the current value of a variable, you can use PyCharm’s variable viewer to make sure everything looks right.
You may often find yourself needing to move back and forth between different locations in the code when you are developing. PyCharm has long had the Recent Files popup (Ctrl+E, or Cmd+E on macOS) to help you navigate between these files quickly. However, you don’t just want to get to a file, you want to be taken to a specific location, so we’ve introduced the new and improved Recent Locations popup (Ctrl+Shift+E, or Cmd+Shift+E on macOS) to get you to your destination quicker.
Don’t like our default styling? We’ve improved our support for UI theme plugins. Find one in the plugins marketplace by looking for 'tag: UI', or learn how to make your own.
One of the hardest parts of switching to a new tool is having to learn all the new hotkeys. We've added a Sublime Text keymap to make it easier for anyone switching from Sublime Text to PyCharm.
The PyCharm debugger can now handle infinitely large collections without slowing down while initially loading the collection.
Python 3.7 Data Classes were already supported in PyCharm, but now we’ve extended this support to make sure that subclasses of Data Classes also get accurate code completion.
When you’re developing an application for multiple environments, for example when migrating between Python or framework versions, it makes life easier when you are able to quickly switch between them and see at a glance which version you’re now using.
Python’s optional typing helps you to document your code and prevent mistakes down the line. We’ve now furthered our support for it by checking types on variable assignment.
PyCharm supports Python interpreters inside Vagrant boxes, and now also makes your Vagrantfile look good.
You need root access to control the GPIO pins on your Raspberry Pi, so to make GPIO development easier we’ve made it possible to run code with root privileges over SSH in PyCharm 2019.1. Of course, you could use root privileges for other uses, but we wouldn’t want to encourage those publically, would we now?
CSS has gotten a lot more powerful over the years, which has brought more complexity. To help you find your way around this more complex modern CSS, we’ve improved the quick documentation support – just press Ctrl+Q (or Ctrl+J on macOS) to learn more. Don’t worry, we won’t tell anyone if you look up the docs for the ‘p’ tag.
Large test suites are good, but they can take a while to run. To make them complete a little faster, we’ve now upgraded our pytest integration to support multiprocess test running.
PyCharm Professional Edition bundles all the SQL support from JetBrains DataGrip. They’ve just improved the process for configuring a new database connection. If you haven’t tried this yet, you are in for a treat. After configuring your database, in addition to being able to explore your tables, you’ll also get schema-aware SQL completion when writing queries in your Python code.
Are you using Windows, but developing an application for Linux? You now have yet another option for running your code in a Linux environment from PyCharm. Run your code in Windows Subsystem for Linux.
When Python 3.6 came out, F-strings were one of the most popular features, and of course PyCharm has supported them since the beginning. As they are growing even more popular, we’ve made some changes to make them a lot faster in PyCharm, and fixed a lot of bugs as well.
One of the most voted-for features in YouTrack was a request for supporting multiline TODOs. It’s here now: multiline TODOs are supported in Python (and other languages) in PyCharm 2018.3.
Did you know that PyCharm can automatically format the imports in your code? This lets you easily format your code according to PEP 8 and/or your project’s code style guide. PyCharm 2018.3 expands the various configuration options for import sorting.
Search everywhere helps you search anywhere. The search everywhere popup now shows which options you have to narrow down your search and find what you’re looking for faster.
PyCharm is a great tool for developing Python. But did you know you can also use PyCharm to write TerraForm files, or Ansible playbooks? It’s all possible with third-party plugins. We’ve refreshed our Plugins repository, so check it out and customize your PyCharm.
Various world wars have been fought over which type of indentation is superior. We won’t pick a side, but we will enable you to see which side the author of your file picked. The status bar also functions as a weapon to convert these files to your preferred type of indentation.
Is your first move when you start up your IDE to set up a couple terminal tabs for various purposes? You’ll need to reshuffle your morning routine, because we’ve made terminal tabs persistent: PyCharm now remembers them for you. To make things even sweeter, you can label them.
PyCharm connects to your issue tracker: with tasks and contexts, you can quickly pick a ticket from the tracker, create a new branch, and get started. Since PyCharm 2018.3, the IDE can measure how long you work on a ticket, and automatically update your issue tracking system.
To smooth out the process of reviewing code on GitHub a little, checking out the code proposed in a pull request is now only a click away: go to the new Pull Request tool window, explore pull requests, right-click the PR, and choose ‘Create New Local Branch’ to check it out.
PyCharm Professional Edition already has solid support for nearly all commonly used SQL databases. We’ve now set our first steps toward supporting unstructured NoSQL databases. Try Cassandra support now!
PyCharm Professional Edition has supported live editing HTML for a while, but it has always required a plugin to be installed. Now, you can live-edit HTML and CSS without using a plugin, making quick work out of getting your page styled just how you like it.
We’ve updated our support for Angular, and coding Angular should now be faster and more accurate.
Pipenv simplifies your application's dependency management. PyCharm 2018.2 will automatically create a pipenv when you open a project with a Pipfile, and makes it easy to create new projects with pipenvs.
Want to try an exciting new library, but not spend all day reading documentation? PyCharm’s quick documentation is now better looking and easier to read. Press Ctrl+Q (Ctrl+J on macOS) to see exactly the documentation you need, right in the editor.
Pytest makes testing your code a breeze. In PyCharm 2018.2 we’ve upgraded our Pytest support with BDD and code intelligence for fixtures. Fixtures are available in both the community edition and the professional edition of PyCharm 2018.2, get PyCharm Professional Edition for BDD support.
You may have already seen how PyCharm (with a plugin) can show you what your Markdown document will look like. This functionality, and more, is now available for reStructuredText.
Have you been reading about those exciting new Dataclasses in Python 3.7, but you can’t upgrade your project yet? The attrs library brings these features (and more) to any Python version.
PyCharm aims to help you write better Python code, faster. That’s why we’ve improved the code insight even further: it now checks more type hints, and checks if you’re correctly awaiting function calls in asynchronous code, and offers quick fixes.
Do you use multiple GitHub accounts on a regular basis? PyCharm 2018.2 makes switching between them more convenient.
He who doesn’t know history is doomed to repeat it. By being able to slice and dice it in multiple tabs, we’ve made it easier to learn from your project’s history.
They said it couldn’t be done, they said it violates the second law of thermodynamics. Time travel: it’s available in PyCharm now.
SQL is a powerful language and allows you to view your data in many complex ways. To keep your application performant, check your query plans. In PyCharm 2018.2 you can visually inspect where you need to tweak your query or add an index.
PyCharm 2018.2 looks sleeker than ever before. The new design philosophy reduces the usage of color to where it is semantically important, making it easier to find what you need at a glance.
Do you have a MacBook Pro with a Touch Bar? PyCharm now provides context-sensitive touch bar contexts for running your code, debugging, VCS, and more.
Code maintenance usually isn’t a developer’s favorite task. Deleting unused code makes the job quicker and lets you finish the task quicker. PyCharm now helps you find unused client-side JS code.
Performance is an important topic, and we’re happy to announce that indexing new Angular projects is now twice as fast.
Most Vue templates will have event code attached to them. PyCharm now makes it easier to hook up your handlers to the correct event.
Use the newest Python features with PyCharm: dataclasses, from __future__ import annotations, and more.
PyCharm 2018.1 makes it even easier to use type hints to annotate your code. Type hints are now inherited from superclasses, and you can use typing.NewType to define custom types. If you prefer to leave things implicit, we’ve also improved the type inference for collections.
When writing scientific code, it doesn’t always make sense to run the whole file. Run only the part of the file you are working on – and never wait to reload your data. Just turn on the scientific mode (View | Scientific Mode) and try them now!
Get started with your analysis quickly by creating a scientific project. The scientific project will create a folder structure for your data and a Conda environment for you right away. Using a custom Conda installation? You can now tell PyCharm which Conda executable to use.
Flask has introduced the 'flask' commands in its newer versions. You can now create run configurations that use the 'flask' commands in PyCharm.
Do you like granular commits? PyCharm 2018.1 lets you choose exactly which changes to include in your commit.
Rebasing is a task that few developers look forward to. Ease the pain with PyCharm’s new rebase integration.
Do you like to run code on remote machines? Whether it's an EC2 box or your Raspberry Pi, PyCharm makes it easy to connect.
We’ve added support for Docker Compose 3.3 and later, improved the performance of Docker Compose-based interpreters, and changed the output to make the logs look more like they do when using command-line Docker.
PyCharm Professional Edition bundles all of the features of JetBrains DataGrip, our database IDE. To take advantage of this easy-to-use integration, you can now find tables of connected databases using the 'Find class' window.