Skip to content

Instantly share code, notes, and snippets.

@shubhamagarwal92
Last active August 14, 2020 08:25
Show Gist options
  • Select an option

  • Save shubhamagarwal92/ca010e3345e276801d7e10bfd7f0a79f to your computer and use it in GitHub Desktop.

Select an option

Save shubhamagarwal92/ca010e3345e276801d7e10bfd7f0a79f to your computer and use it in GitHub Desktop.

Revisions

  1. shubhamagarwal92 revised this gist May 7, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ssh_config_pycharm.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Pre-requisite: You should be able to do ssh without entering password. See [this](https://apple.stackexchange.com/a/210133)

    Steps (Fig 1 and 2)
    1. Open project in PyCharm
    2. Make directory on server
  2. shubhamagarwal92 revised this gist Jan 22, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions ssh_config_pycharm.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Steps
    Steps (Fig 1 and 2)
    1. Open project in PyCharm
    2. Make directory on server
    3. Test you can ssh without entering password. (Save your rsa key on server)
    @@ -12,7 +12,7 @@ https://www.jetbrains.com/help/pycharm/creating-a-remote-server-configuration.ht
    https://www.jetbrains.com/help/pycharm/deployment-in-pycharm.html


    Add remote python interpreter
    Add remote python interpreter (Fig 3 and 4 in the comment)

    https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html

    @@ -21,7 +21,7 @@ https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.h



    If you have a code using relative paths:
    If you have a code using relative paths: (Fig 5)

    1. Right click folder -> Mark as -> source root

  3. shubhamagarwal92 created this gist Jan 22, 2020.
    31 changes: 31 additions & 0 deletions ssh_config_pycharm.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    Steps
    1. Open project in PyCharm
    2. Make directory on server
    3. Test you can ssh without entering password. (Save your rsa key on server)
    4. Preferences -> Deployment
    5. Enable automatic upload https://www.jetbrains.com/help/pycharm/deployment-in-pycharm.html#upload-to-default-server
    6. First time upload your directory. Right click project folder -> deployment -> deploy to <machine_name>
    7. Add multiple directories if want to deploy on different servers.


    https://www.jetbrains.com/help/pycharm/creating-a-remote-server-configuration.html
    https://www.jetbrains.com/help/pycharm/deployment-in-pycharm.html


    Add remote python interpreter

    https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html

    1. Preferences -> Project interpreter -> ssh interpreter -> new/existing
    2. Select exact conda path : /scratch/../anaconda3/env/name/python



    If you have a code using relative paths:

    1. Right click folder -> Mark as -> source root


    For AWS, similarly the steps can be followed as mentioned here:

    https://www.codementor.io/abhishake/pycharm-setup-for-aws-automatic-deployment-m7n8uu2n4