/environment_setup

instructions on environment standard setup

General Environment Setup


Python

VScode

  • Download VScode and install following the instructions https://code.visualstudio.com/
  • Extensions
    • Python

    • SQL Formatter

    • SSH FS
      Open settings: File > Preferences > Settings
      Modify user settings.json by searching for the term "json", click "Edit in settings.json" links
      {

        	"sshfs.configs": [
        		{
        			"host": "YOUR_EDGE_NODE.*****.com",  
        			"label": "YOUR_EDGE_NODE",  
        			"name": "YOUR_EDGE_NODE",  
        			"password": "YOUR_PASSWORD",  
        			"root": "/users/YOUR_AID",  
        			"username": "YOUR_AID"
      
        		}
        	],  
        	"editor.rulers": [80],    
        	"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",  
        	"window.zoomLevel": -1,  
        	"sql-formatter.uppercase": true  
      

      }
      Test connection

      • Type ssh YOUR_ID@YOUR_EDGE_NODE in terminal
      • Clicke on the "Explorer" icon on the left_hand bar, right-click on the edge node name that appears under "SSH FILE SYSTEMS", and select "Connect as Workspace folder". The icon beside the name of the edge node should turn green and you'll see the files in your edge node home directory above
    • Hive SQL

    • Jupyter

    • Python Docstring Generator

  • settings.json use vscode_settings.json in the repo

Git

  • Download Git and install following the instructions https://git-scm.com/download/win
  • Generate ssh key from local computer and register it on Github account https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
    • Windows 0. Open Git Bash
      1. Checking for existing SSH keys - might need to create folder ~/.ssh
      2. Generating a new SSH key and adding it to the ssh-agent - remember adding to ssh-agent
      3. Adding a new SSH key to your GitHub account - make an unique SSH key on Github account
      4. Testing your SSH connection - follow the instructions
      5. (Working with SSH key passphrases)

Cmder

Google Cloud