... | ... | @@ -26,7 +26,8 @@ The first step consists in creating a PyCharm Python project on your local machi |
|
|
|
|
|
Figure 1 shows an example for hostname `icaro.polito.it` and username `YOUR_ID`.
|
|
|
|
|
|
Figure 1:
|
|
|
**Figure 1:**
|
|
|
|
|
|
<img src="./figures/pycharm1.png" width="500">
|
|
|
|
|
|
Then, insert your authentication details to connect to the target server in the next dialog.
|
... | ... | @@ -35,14 +36,16 @@ Then, insert your authentication details to connect to the target server in the |
|
|
|
|
|
In the following dialog, you can select the path of the Python executable 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 Figure 2.
|
|
|
|
|
|
Figure 2:
|
|
|
**Figure 2:**
|
|
|
|
|
|
<img src="./figures/pycharm2.png" width="500">
|
|
|
|
|
|
You can either set this path to the system-wide installation of your preferred Python version, or (more commonly) to a project-level virtualenv (see ["Python Virtual Environments"](/virtualenv)).
|
|
|
|
|
|
As shown in Figure 3, PyCharm will let you navigate graphically the directories of the server and select your preferred Python path. For virtualenvs, the executable path is `<virtualenv-root>/bin/python`.
|
|
|
|
|
|
Figure 3:
|
|
|
**Figure 3:**
|
|
|
|
|
|
<img src="./figures/pycharm3.png" width="300">
|
|
|
|
|
|
The figure shows an example for a virtualenv located in the user's home directory and named `py`.
|
... | ... | @@ -55,7 +58,8 @@ Lastly, you have to setup the automatic synchronization of Python files from you |
|
|
|
|
|
Figure 4 shows an example where a local project found in `~/Documents/code/my_project` is synchronized with the remote folder `/space/<username>/my_project`.
|
|
|
|
|
|
Figure 4:
|
|
|
**Figure 4:**
|
|
|
|
|
|
<img src="./figures/pycharm4.png" width="500">
|
|
|
|
|
|
|
... | ... | |