pavanagrawal123 / VSNotebooks

Jupyter Notebooks in Visual Studio Code
MIT License
63 stars 2 forks source link

Using remote jupyter session #26

Open pauliusbaranauskas opened 5 years ago

pauliusbaranauskas commented 5 years ago

Hi. Most of my coding with Python is in a remote Jupyter Notebooks. I would like to execute code there. In example, I would paste a link to running Jupyter Notebook session and when I execute code in VS Code - it passes it there.

pavanagrawal123 commented 5 years ago

This should actually work already. There's an option for it in the command pallete Try it and let me know if it worked! :)

pauliusbaranauskas commented 5 years ago

Hi. I have tried using "IPE: Open Output Pane with Existing Jupyter Notebook" command and it works on a local notebook, but when trying to use this for a remote, it returns error "Error: Invalid response: 403 Forbidden".

pavanagrawal123 commented 5 years ago

Ok, I will look into this ASAP, thanks for reporting, @uogiukas!

vnijs commented 5 years ago

I was able to get this to work in vscode (and code-server in docker). Very nice!!

I can connect to a local R-kernel and to an R-kernel running in a docker container. I do have to use the "enter manually" option, however, because the extension doesn't seem to pick up settings (shown below) automatically. Any idea why that might be?

Question: Is it possible for the extension to see what kernels are running and allow the user to select among them? This is something that Atom + Hydrogen can do and it is a fantastic feature.

image

cc @andycraig

vnijs commented 5 years ago

FYI If works with a remote sever also but it is a bit trick. Again, the url and token for the remote server are not picked, despite being in available in 'settings'. Then, copy-and-pasting is a bit trick because the pop-up disappears sometimes when I go to copy the token. Finally, if the connection for some reason, it doesn't seem possible to get the input pop-up to show up again without restarting vscode.