-
Notifications
You must be signed in to change notification settings - Fork 294
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
Connection to remote server via URI not working #6601
Comments
@zohimchandani Could you please upgrade to the latest version of VS Code and the extensions you are using and let us know if this problem persists? |
@claudiaregio Downloaded VS Code 1.58 and also updated all my extensions but unfortunately, the problem still persists. |
Further information: if I paste the URL link provided by the remote server into a web-browser, a jupyter notebook interface opens up in which I am able to run my notebook. However, when I paste that link into vs-code, I get the following errors:
|
@zohimchandani does this kernel work in the browser? If you enter the same URL into the browser and open an notebook, can you run a cell? This error here looks like the kernelspec.json file is incorrect (or VS code can't find this directory):
|
@rchiodo Thought I'd record a short video to show you the steps I am taking which can be found on this youtube link: https://youtu.be/eBo5e-a6NXY The terminal errors are also pasted below:
Hope this helps in diagnosing the issue. Let me know if you'd like further information. |
What does I would hazard a guess that this file doesn't exist:
|
@rchiodo Please find below the output as requested:
|
This kernelspec is causing our crash:
Not sure why we're starting it, but it might be because we're trying to list them all when remote. If you delete this kernel (or fix it) the problem should go away. |
Not sure how I'd delete or fix this? Can you please expand and give me some instructions I can follow to resolve this. Thanks @rchiodo |
I believe that kernel is located here:
There should be a directory there called Delete that directory and the problem should resolve itself. Or if you need that kernel for something else, verify that this argument: |
We don't support any other environment other than the one you launched Your |
|
So to clarify just so I understand this: The file I can run a file stored on my local machine on the remote server but if have commands to read data in the file, the data needs to be stored on the remote server, in the folder where I launched my jupyter notebook from? If I have a command to save a plot in my code, Lastly, if I am running 2 different notebooks on the same port with the same token, is this slower than running them on different ports? Thanks for helping me decipher this issue and getting it up and running. Appreciate your help. |
Yes. It's on your local machine.
Yes. The directory where you started 'jupyter notebook' is the root. I believe this is the root from where it will look for all files. So if the data file is in a subdirectory of the notebook, it has to be in a subdirectory of where you ran 'jupyter notebook' from.
It will be saved on the remote machine. The code is running on the remote machine. The kernel itself does not understand anything about your local file system.
I don't believe it's any slower. The kernel for each notebook is launched as a separate process for each notebook. The jupyter server is acting as a multiplexer to the different kernels but the major amount of time is likely the execution and not the transfering of the output html. |
Thanks for your previous responses. I ran the code running overnight in 2 notebooks and received the following error this morning:
Is this because of inactivity? The code in the notebook ran fine for the first 2 hours and then crashed later. |
I haven't seen disconnect errors before unless you shutdown VS code overnight. |
Do I have to leave the ssh connection alive whilst the code is running or can I close my terminals and reconnect to see progress? |
You have to leave the connection open. Otherwise the kernel is killed. We have enhancements to allow kernels to run without the connection but that hasn't been implemented yet. |
Environment data
Steps I am taking
The text was updated successfully, but these errors were encountered: