- Download Miniconda and install following the instructions https://docs.conda.io/en/latest/miniconda.html
- VSCode and system setup
- Add Conda environment https://stackoverflow.com/questions/54828713/working-with-anaconda-in-visual-studio-code
-
Change teminal in vscode to cmd, it should be able to activate conda automatically
-
Now, we want to activate conda in powershell as well. Change settings.json to below.
{"workbench.editorAssociations": [], "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe", "terminal.integrated.shellArgs.windows": ["/K", "C:\\Users\\cheng\\miniconda3\\Scripts\\activate.bat C:\\Users\\cheng\\miniconda3"], "python.condaPath": "C:\\Users\\cheng\\miniconda3\\Scripts\\conda.exe"
}
-
- Add below paths on path in "Environment Variables" for both system variables and user variables (Advanced in System Properties)
- C:\Users\cheng\miniconda3
- C:\Users\cheng\miniconda3\Scripts
- C:\Users\cheng\miniconda3\Library\bin
- Other linkes can be useful
- https://stackoverflow.com/questions/59519338/dll-load-failed-the-specific-module-could-not-be-found-vscode-numpy
- https://stackoverflow.com/questions/54828713/working-with-anaconda-in-visual-studio-code
- https://stackoverflow.com/questions/54063285/numpy-is-already-installed-with-anaconda-but-i-get-an-importerror-dll-load-fail
- https://code.visualstudio.com/docs/python/environments#:~:text=To%20do%20so%2C%20open%20the,Settings%2C%20with%20the%20appropriate%20interpreter.
- https://medium.com/@udiyosovzon/how-to-activate-conda-environment-in-vs-code-ce599497f20d
- https://towardsdatascience.com/get-your-computer-ready-for-machine-learning-how-what-and-why-you-should-use-anaconda-miniconda-d213444f36d6
- https://www.practicaldatascience.org/html/setup_environment.html
- https://blog.csdn.net/yctjin/article/details/80184988
- Add Conda environment https://stackoverflow.com/questions/54828713/working-with-anaconda-in-visual-studio-code
- Install python packages
- conda install pandas
- conda install pip
- pip install -r requirements.txt (conda doesn't have install -r requirements.txt)
- 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
- 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
- Checking for existing SSH keys - might need to create folder ~/.ssh
- Generating a new SSH key and adding it to the ssh-agent - remember adding to ssh-agent
- Adding a new SSH key to your GitHub account - make an unique SSH key on Github account
- Testing your SSH connection - follow the instructions
- (Working with SSH key passphrases)
- Windows
0. Open Git Bash
- Download Cmder and install following the instructions https://cmder.net/