2021-05-13 23:48:51 +00:00
|
|
|
---
|
|
|
|
title: Integration for PyCharm
|
|
|
|
---
|
|
|
|
|
2021-06-20 22:00:16 +00:00
|
|
|
The **ClearML PyCharm plugin** enables syncing a local execution configuration to a remote executor machine:
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2022-11-09 11:40:37 +00:00
|
|
|
* Sync local repository information to a remote machine - When using PyCharm to run/debug code remotely using
|
|
|
|
an SSH connection, PyCharm copies the code base into the remote machine and runs it there. PyCharm does not copy
|
|
|
|
the `.git` folder into the remote machine, so ClearML can't detect the correct git repository details when running on the
|
|
|
|
remote machine. The ClearML PyCharm plugin detects the git details on the local
|
|
|
|
machine, and passes that information to the remote machine to be registered to a [task](../../fundamentals/task.md).
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2022-11-09 11:40:37 +00:00
|
|
|
* Pass user credentials to a remote machine - Multiple users can use the same resource for execution without compromising
|
|
|
|
private credentials (assuming the entire code base, including `.git` already exists on the remote machine)
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2021-06-20 22:00:16 +00:00
|
|
|
* Run the [ClearML Agent](../../clearml_agent.md) on default VMs/Containers.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2021-05-18 22:31:01 +00:00
|
|
|
1. Download the latest plugin version from the [Releases page](https://github.com/allegroai/clearml-pycharm-plugin/releases).
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
1. Install the plugin in PyCharm from local disk:
|
|
|
|
|
2022-11-09 11:40:37 +00:00
|
|
|
![PyCharm plugin installation](../../img/ide_pycharm_plugin_from_disk.png)
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2021-09-09 10:17:46 +00:00
|
|
|
## Optional: ClearML Configuration Parameters
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
:::warning
|
|
|
|
If you set ClearML configuration parameters (ClearML Server and ClearML credentials) in the plugin, they will override
|
|
|
|
the settings in the ClearML configuration file.
|
|
|
|
:::
|
|
|
|
|
|
|
|
**To set ClearML configuration parameters:**
|
|
|
|
|
2022-03-13 13:07:06 +00:00
|
|
|
1. In PyCharm, open **Settings** **>** **Tools** **>** ClearML.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2021-06-20 22:00:16 +00:00
|
|
|
1. Configure your ClearML server information:
|
2021-05-13 23:48:51 +00:00
|
|
|
1. API server (for example: ``http://localhost:8008``)
|
|
|
|
1. Web server (for example: ``http://localhost:8080``)
|
|
|
|
1. File server (for example: ``http://localhost:8081``)
|
|
|
|
|
2022-03-13 13:07:06 +00:00
|
|
|
1. Add ClearML user credentials key/secret.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2022-11-09 11:40:37 +00:00
|
|
|
1. Check box to disable SSL certificate verification (for on-prem `clearml-server` installations).
|
|
|
|
|
|
|
|
1. Check box to disable local git detection. The PyCharm plugin is often used to run git detection on the local machine
|
|
|
|
since there is no `.git` folder on the remote machine. In the case that the plugin is used just for passing configuration
|
|
|
|
to a remote SSH machine, there is no need to run the git detection on the local machine.
|
|
|
|
|
|
|
|
|
|
|
|
![PyCharm configuration](../../img/ide_pycharm_config_params.png)
|