Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Spyder /Python on remote server

So there are variants of this question - but none quite hit the nail on the head.

I want to run spyder and do interactive analysis on a server. I have two servers , neither have spyder. They both have python (linux server) but I dont have sudo rights to install packages I need.

In short the use case is: open spyder on local machine. Do something (need help here) to use the servers computation power , and then return results to local machine.

Update:

I have updated python with my packages on one server. Now to figure out the kernel name and link to spyder. Leaving previous version of question up, as that is still useful.

The docker process is a little intimidating as does paramiko. What are my options?

like image 698
pythOnometrist Avatar asked Sep 11 '18 20:09

pythOnometrist


People also ask

Can I connect Spyder to remote server?

Connect to a remote kernelLaunch a Spyder kernel on the remote host if one is not already running, with python -m spyder_kernels. console . Copy the kernel's connection file ( jupyter/runtime/dir/path/kernel-pid. json ) to the machine you're running Spyder on.

How do I run Spyder Python?

Running Spyder You can launch it in any of the following ways: From the command line: Type spyder in your terminal (or Anaconda prompt on Windows). From Anaconda Navigator: Scroll to Spyder under Home, and click Launch. *Windows Only*: Launch it via the Start menu shortcut.

How do I run Spyder on Linux?

At the Anaconda Prompt (terminal on Linux or macOS), type spyder and press Enter. Spyder should start up just like it did when you launched it from Anaconda Navigator. Close Spyder the same way you did in the previous exercise. At the Anaconda Prompt (terminal on Linux or macOS), type jupyter-notebook and press Enter.

Is Spyder interactive interpreter?

The Interactive Terminal (in Spyder, the IPython Console) allows you to execute commands and interact with data inside any number of IPython interpreters. Each console in Spyder is executed in a separate process, allowing you to run scripts independently.


1 Answers

(Spyder maintainer here) What you need to do is to create an Spyder kernel in your remote server and connect through SSH to it. That's the only facility we provide to do what you want.

You can find the precise instructions to do that in our docs.

like image 149
Carlos Cordoba Avatar answered Sep 22 '22 14:09

Carlos Cordoba