... | @@ -14,11 +14,11 @@ The rest of this page contains a short guide on how to setup remote deployment o |
... | @@ -14,11 +14,11 @@ The rest of this page contains a short guide on how to setup remote deployment o |
|
|
|
|
|
This guide refers to PyCharm Professional version 2021.1 and to a remote deployment that uses a ssh server on the remote machine.
|
|
This guide refers to PyCharm Professional version 2021.1 and to a remote deployment that uses a ssh server on the remote machine.
|
|
|
|
|
|
#### 1. Create a Project
|
|
#### Create a Project
|
|
|
|
|
|
The first step consists in creating a PyCharm Python project on your local machine.
|
|
The first step consists in creating a PyCharm Python project on your local machine.
|
|
|
|
|
|
#### 2. Set a Remote Python Interpreter
|
|
#### Create a Remote Python Interpreter
|
|
|
|
|
|
- Open the preferences window selecting `Settings/Preferences` in Windows/Linux, or `PyCharm/Preferences` in macOs.
|
|
- Open the preferences window selecting `Settings/Preferences` in Windows/Linux, or `PyCharm/Preferences` in macOs.
|
|
- Select `Project: <project-name>/Python Interpreter`, then click on the wheel icon and select `Add`.
|
|
- Select `Project: <project-name>/Python Interpreter`, then click on the wheel icon and select `Add`.
|
... | @@ -28,3 +28,11 @@ The figure below shows an example for hostname `icaro.polito.it` and username `Y |
... | @@ -28,3 +28,11 @@ The figure below shows an example for hostname `icaro.polito.it` and username `Y |
|
|
|
|
|
<img src="./figures/pycharm1.png" width="500">
|
|
<img src="./figures/pycharm1.png" width="500">
|
|
|
|
|
|
|
|
Then, insert your authentication details to connect to the target server in the next dialog.
|
|
|
|
|
|
|
|
#### Set the Path of the Remote Interpreter
|
|
|
|
|
|
|
|
In the following dialog, you can select the path of the Python binary that you want to use in the remote server. You can do so by clicking on the folder icon highlighted in the top right of following figure.
|
|
|
|
|
|
|
|
<img src="./figures/pycharm2.png" width="500">
|
|
|
|
|