Has anyone been able to run spyder remotely via ssh?

135 views
Skip to first unread message

Pratik Samant

unread,
Jun 19, 2020, 12:44:36 PM6/19/20
to spyder
I have a server (which I will now call the target server) that I can access via both Putty and WinSCP. The server runs Ubuntu and I want to access it using my home computer running Windows 10.

I am trying to follow the documentation here: https://docs.spyder-ide.org/ipythonconsole.html and have installed anaconda, spyder, spyder-kernels, and paramiko on the target server using the terminal.

However, when I start to follow the instructions to get a kernel started remotely I am confused. When I run the command
python -m spyder_kernels.console
 from the terminal (as the instructions say to) I get the following displayed on my kernel


NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.

To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.

To read more about this, see https://github.com/ipython/ipython/issues/2049


To connect another client to this kernel, use:
    --existing kernel-24957.json

However I'm not able to figure out where to go from here. The documentation says "Copy the connection file (jupyter/runtime/dir/path/kernel-pid.json) to the machine you’re running Spyder on (if remote) or note its location (if local)." but I don't know what that means as the terminal is not returning any connection file address for me to specify.

I have alternately just tried to type in my ssh login credentials by going to Consoles from spyder but I get the error "An error occured while trying to load the kernel connection file. The error was: Expecting value: line 1 column 1 (char 0)".

So basically it looks like spyder is looking for a connection file and I have no idea where the connection file is being generated, whether the connection file is on the target server or my computer, nor how to let spyder know of its location.

Anyone else have luck running spyder remotely?

Thanks
Reply all
Reply to author
Forward
0 new messages