vscode-jupyter icon indicating copy to clipboard operation
vscode-jupyter copied to clipboard

How can I run Jupyter in vscode when I have to use Slurm to get GPU

Open aqlkzf opened this issue 2 years ago • 3 comments

I want to use jupyter in vscode when I connect to the Central Server, now it works fine when I didn't use Slurm to get my GPU resource to compute, but I really want to konw how can I use GPU via slurm in vscode-jupyter.

Much thanks in advance.

aqlkzf avatar Sep 16 '22 12:09 aqlkzf

I'm not very familiar with slurm, but from this walkthrough it looks like it's just a way to set up a remote jupyter server. Where is it failing for you? Are you trying to connect directly to the remote jupyter server, or use vscode's ssh first and then connect?

Can you provide the logs Jupyter: Show Output

amunger avatar Sep 16 '22 16:09 amunger

Now I find a way to use vscode-jupyter under slurm, similar to this https://jejjohnson.github.io/research_journal/tutorials/jupyter_vscode/vscode_jupyter/ , I can use tmux to open jupyter and get the url, then use vscode-jupyter to open the existing service via this url. But when I thoose image there are only one choice,no the existing url choice what I see in some blogs on the Internet. image. Can you kindly give me some advice on how to slove this problem?

aqlkzf avatar Sep 16 '22 16:09 aqlkzf

image I didn't have this choice.

aqlkzf avatar Sep 16 '22 16:09 aqlkzf

@aqlkzf Based on the notes, all you have to do is copy the link of the jupyter server that you get in output of step 3 from here https://jejjohnson.github.io/research_journal/tutorials/jupyter_vscode/vscode_jupyter/ ,

Once you have the link of the jupyter server, then in the Enter the URI of the running Jupyter Sever, just paste that link and that should be all.

DonJayamanne avatar Dec 06 '22 22:12 DonJayamanne