The third EAP build brings the long-awaited ability to work with remote Jupyter notebooks, enhancements to the new UI, new Astro support, and more.
From our partners:
Let’s take a closer look at these and other changes in this build.
Remote editing of Jupyter notebooks
You can now easily work with the remote Jupyter notebooks from PyCharm. To do so, open the project you want to attach a remote Jupyter notebook to in PyCharm. In the main menu, select Tools | Add Jupyter Connection. In the popup that comes up, choose Connect to Jupyter server using URL and then enter the server URL.
After establishing a successful connection, PyCharm will show the remote Jupyter server in the project view. Please note that the server will be bound to this specific project, meaning that if you want to work with this server for another project, you will need to repeat these steps to attach it to that particular project.
The context menu offers a range of notebook-related actions you can use:
- Copy, paste, and rename remote Jupyter notebooks between local and remote machines.
- Fetch the latest remote version of the notebook from the server by selecting Reload from Server.
- Reconnect to a remote server by selecting Reconnect.
Manage the packages of the attached projects
If you work with an additional project attached to your main project, you can now manage the packages of both projects in the Python Packages tool window.
Open the tool window and choose a project to work with in the additional panel on the left. You will see the list of the available packages on the left-hand side of the tool window. You can install and uninstall the package and manage its version.
If you’re working with multiple files from different projects with the Python Packages tool window open, the project selected in the tool window (and the list of the installed packages) will be changed automatically depending on the current active file.
We’ve also implemented alphabetical sorting for the list of installed packages for your current project in the Python Packages tool window. Note that the sorting is case-sensitive.
Syntax highlighting for the Quick Documentation popup
Now it is even easier to read through the code documentation in the Quick Documentation popup. Syntax highlighting in signatures now looks very similar to the one in the editor.
We also updated the Quick Navigation tooltip. Now it provides syntax highlighting for the definition of the selected expression, inferred type, and clickable links for definition elements. To call a tooltip, press ⌘ and hover the mouse pointer over the expression (or place the caret on it).
Code Vision improvements
Last year, in PyCharm 2022.3, we added Code Vision – inlay hints that show the author of the last change to an element (method or class).
For the upcoming 2023.1 release, we’re adding usages inlay hints to Code Vision. They will help you keep track of class implementations and overriding methods. These usages hints show the number of times a symbol is used right above its declaration. You can click the hint to jump to a usage. If there are several usages, select the one you want from the list.
Usages inlay hints are enabled by default. To turn them off, hover over a hint and select Hide ‘Code Vision: Usages’ Inlay Hints or Hide All ‘Code Vision’ Inlay Hints from the context menu.
Vertical split for tool windows in the new UI
For the new UI, we’ve introduced the option to split the tool window area so that you can conveniently arrange these windows.
To add a tool window to this area and place it in the lower part, drag its icon along the sidebar and drop it under the separator. Alternatively, you can right-click on an icon to call the context menu and assign the new placement for a tool window using the Move to action.
Compact Mode for the new UI
To improve the user experience with PyCharm’s new UI on smaller screens, we’ve introduced Compact Mode which provides a more consolidated look and feel due to the reduced heights for toolbars and tool window headers, scaled-down spacings and paddings, and smaller icons and buttons.
To turn Compact Mode on, go to the View menu and select Appearance | Compact Mode.
Project tabs in the new UI on macOS
We’ve resolved one of the most popular feature requests for the IDE’s new UI – implementing project tabs for macOS users. When you have several projects open, you can now easily switch between them using project tabs displayed under the main toolbar.
Initial support for the Astro framework is now available in PyCharm via a plugin. This includes essential assistance such as syntax highlighting, code completion with automatic imports, refactorings, navigation, intentions, code folding, Emmet support, and correct formatting.
You can download the Astro plugin from JetBrains Marketplace, or install it directly from the IDE by going to Preferences / Settings | Plugins and searching for “Astro”.
Merged logs from all Docker-compose containers
The Dashboard tab of the Docker-compose node now pulls together logs from every Docker-compose container and displays them all in one place, updated in real time.
Support for Azure Container Registry
You can now easily connect to Azure Container Registry.
Go to Settings/Preferences | Build, Execution, Deployment | Docker | Docker Registry and set it up by selecting the Docker V2 option in the Registry input field.
New setting to apply the:z mount option to bind volumes on SELinux
You now have the ability to add
:z configuration flags to Docker bind mounts, which allows you to connect volumes to Docker containers on SELinux workstations.
To enable this functionality, go to Settings/Preferences | Advanced Settings | Docker.
File templates in the New Kubernetes Resource popup
To make creating new Kubernetes files easier, we’ve added a new action to the File | New menu.
Once you select the New Kubernetes Resource option, you’ll see a popup that features a list of the most popular resource types, such as Pod, Deployment, ConfigMap, etc.
Action to create new Kubernetes Secrets
PyCharm 2023.1 EAP 3 introduces a new dialog to create Kubernetes Secrets.
To define a new Secret, you can input a key and value manually. Alternatively, you can specify a file whose content will be used for the value of the resulting Secret.
Color-coded change markers in the gutter for Kubernetes resources loaded from cluster
When you use the View YAML action for resources from a cluster and make any changes in the opened file, the IDE highlights all of your edits with color-coded marks in the gutter. This way, you can be sure that the changes are made to the required parts of the resource before you apply them back to the cluster.
Additionally, using the Compare with Cluster icon, you can open a full diff view that will fetch the resource’s current version from the cluster and compare it with the local version.
Improved user experience with kubeconfig files
PyCharm 2023.1 EAP 3 has refined the user experience for working with kubeconfig files. You can now easily access a kubeconfig file in the Services view and open it in the editor.
If you change a kubeconfig file outside of PyCharm, the IDE will detect this and automatically refresh its configuration in the Services tool window.
Furthermore, the IDE now supports both code highlighting and completion for kubeconfig files.
Ability to assign custom shortcuts for actions in the Service view
You can now assign shortcuts for most Kubernetes actions in the Service view, like Forward Ports, Delete Resource, and Describe Resource, among others
To set your custom shortcuts, go to Settings/Preferences | Keymap | Plugins | Kubernetes.
This EAP build also includes the following fixes:
- PyCharm now supports tox 4.0.0 and higher.
- Methods that raise a NotImplementedError are no longer considered abstract by default [PY-38680].
These are the most important updates for PyCharm 2023.1 EAP 3. For the full list of improvements, check out the release notes. Share your feedback on the new features in the comments below, on Twitter, or in our issue tracker.