Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cluster:usage_tips:python [2022/05/16 22:48] – aegir | cluster:usage_tips:python [2022/05/16 23:04] (current) – aegir | ||
---|---|---|---|
Line 50: | Line 50: | ||
==== Step 6: Configure a remote interpreter ==== | ==== Step 6: Configure a remote interpreter ==== | ||
Once the project is open we need to configure a python interpreter to use as a remote execution | Once the project is open we need to configure a python interpreter to use as a remote execution | ||
- | environment. Navigate to '' | + | environment. Navigate to '' |
- | {{ : | + | {{ : |
Once the window is open we select the SSH interpreter option on the left, then fill in | Once the window is open we select the SSH interpreter option on the left, then fill in | ||
- | the IP address of the server and our username on the remote machine. Finally, we press next. The next image illustrates the process. | + | the IP address of the server and our username on the remote machine. Finally, we press next. The image below illustrates the process. |
+ | |||
+ | {{ : | ||
+ | |||
+ | Once you are on the next tab, enter your server user's authentication password and press next. See the below image. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | On the next tab, change the interpreter to ''/ | ||
+ | the folder you created in step 4. The path should be ''/ | ||
+ | unless you created the directory not in your home directory on the remote machine. Then press | ||
+ | Ok and Finish. The below image illustrates the process. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ==== Step 7: Configure remote terminal ==== | ||
+ | For some things such as executing tests in the terminal or browsing project files on the remote | ||
+ | machine you might want to have the remote terminal handy in your PyCharm editor. | ||
+ | |||
+ | Navigate to '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Once this is done, you need to start the SSH session to get the terminal running. To do this, | ||
+ | click '' | ||
+ | editor’s terminal you should see that you are no longer in your machines terminal but in the | ||
+ | server terminal. | ||
+ | |||
+ | |||
+ | |||
+ | ==== Manually syncing project files ==== | ||
+ | |||
+ | When we are working on a remote development environment the files are continuously uploaded to the remote server. This is done automatically by PyCharm by default. Sometimes, especially when we are restructuring our files and folders, PyCharm may get confused about what changes must be uploaded and thus corrupting the sync between your local environment and your remote | ||
+ | environment. | ||
+ | |||
+ | In such cases we can manually trigger a re-upload of our files to the remote server. See the image below for how to do this. | ||
+ | |||
+ | {{ : | ||
- | {{ : | ||