-
Notifications
You must be signed in to change notification settings - Fork 0
feat: added note on vscode R on compute nodes #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
docs/dangpu/R_vscode.md
Outdated
| ssh user@danhead01fl.unicph.domain | ||
| tmux new-session | ||
| srun -c 2 --mem=30gb --time=0-10:00:00 -w dancmpn02fl --pty bash | ||
| source ~/.bash_profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed, move all the bashrc profile logic to bashrc instead.
See example below
$ cat .bashrc
### Source standard KU IT's global bashrc
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
### Source DanGPU definitions
if [ -f /maps/projects/dan1/apps/etc/bashrc ]; then
. /maps/projects/dan1/apps/etc/bashrc
fi
### Source Brickman definitions
if [ -f /maps/projects/dan1/data/Brickman/config/brickman.bashrc ]; then
. /maps/projects/dan1/data/Brickman/config/brickman.bashrc
fi
docs/dangpu/R_vscode.md
Outdated
|
|
||
| **IMPORTANT!** When using `code tunnel` the connection between your local VScode instance and the compute node is bridged by a Microsoft server. This means `code tunnel` should not be used to work with sensitive human data. However, the connection is secured and authenticated using your Microsoft account and all data is encrypted during transit. | ||
|
|
||
| ## code-server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this more clear, no one will know what is the code-server
docs/dangpu/R_vscode.md
Outdated
| ## Downloads | ||
|
|
||
| Do only once to make modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
docs/dangpu/R_vscode.md
Outdated
| ### VScode CLI | ||
|
|
||
| ```bash | ||
| curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz | ||
| tar -xf vscode_cli.tar.gz | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this under installation
docs/dangpu/R_vscode.md
Outdated
| ### VScode code-server | ||
|
|
||
| ```bash | ||
| curl -fL https://github.com/coder/code-server/releases/download/v4.90.2/code-server-4.90.2-linux-amd64.tar.gz | tar -C /maps/projects/dan1/data/Brickman/shared/modules/software/code-server/4.90.2 -xz | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, different heading structure would make this easier to read
docs/dangpu/R_vscode.md
Outdated
| - Open the link and enter the given code to authenticate | ||
| - Chose your KU microsoft account and click continue | ||
| - Open the link in your web browser and accept the connection | ||
| - ALTERNATIVELY: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - ALTERNATIVELY: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection | |
| - **ALTERNATIVELY**: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection |
docs/dangpu/R_vscode.md
Outdated
| - Chose your KU microsoft account and click continue | ||
| - Open the link in your web browser and accept the connection | ||
| - ALTERNATIVELY: Open your VScode desktop app, click `open a remote window` in bottom left corner, choose connect to tunnel > microsoft account > tunnel name and accept connection | ||
| - You can now run R interactively on the chosen compute node using VScode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - You can now run R interactively on the chosen compute node using VScode | |
| - Go back to terminal and hit ENTER on questions about tunnel name | |
| - go to vsc > settings > Rterm:Linux and paste the following `/opt/software/R/4.3.1/bin/R` |
| A solution to run R scripts on computing nodes dancmpn01fl and dancmpn02fl using VScode code tunnel | ||
|
|
||
| This is much faster than the current RStudio solution, and frees up danGPU for those who actually need GPU resources :) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe here we should add that the first time you open R in vsc you will most likely have to re-install all your libraries
docs/dangpu/R_vscode.md
Outdated
| tmux new-session | ||
| srun -c 2 --mem=30gb --time=0-10:00:00 -w dancmpn02fl --pty bash | ||
| source ~/.bash_profile | ||
| module load vscode_cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| module load vscode_cli | |
| module load vscode_cli gcc/11.2.0 R/4.3.1 |
Co-authored-by: Silvia_R <silvia.rnr@gmail.com>
Co-authored-by: Silvia_R <silvia.rnr@gmail.com>
No description provided.