Use Spyder like IPython Notebook through server connection

4,273 views
Skip to first unread message

Stevem

unread,
May 13, 2016, 4:06:29 PM5/13/16
to spyder
Hi,

IPython notebook can be connected to the python server through web adress and use it into the browser.

Is there a way to do the same thing in Sypder, so the Spyder IPython is connected to the python server ?

Thanks, regards

Carlos Córdoba

unread,
May 13, 2016, 4:15:55 PM5/13/16
to spyd...@googlegroups.com
Hi,

There's a way to connect to a remote IPython console through ssh. For that you need to go to:

    Consoles > Connect to an existing kernel

and pass to that dialog your user name, ip or remote machine name and your password.

There are some limitations with this functionality though:

1. You can't interrupt computations on remote kernels.
2. You can't restart remote kernels.
3. This doesn't work well when you work on Windows and try to connect to a kernel in Linux.

The first two limitations are going to be addressed in the mid term by the IPython guys, and we're investigating what's happening with the third one :-)


Cheers,
Carlos

El 13/05/16 a las 01:56, Stevem escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Stevem

unread,
May 16, 2016, 8:02:01 PM5/16/16
to spyder
Hello Carlos,

Thank you for answer.

Many people are using IPython notebook as a a front end for Python for their computations.

I was very surprised that little know about Spyder, even they are professionnal in python...

Maybe, Ipython should be effort to open Ipython communication API ?

Stevem

unread,
May 20, 2016, 4:18:01 PM5/20/16
to spyder
Hi,

I have on my browser Jupyter Notebook server enabled:


i tried to copy paste this into Spyder Kernal, it seems not working, how can I do ?

Thanks, regards

Carlos Córdoba

unread,
May 22, 2016, 11:09:56 AM5/22/16
to spyd...@googlegroups.com
Hi,

Every notebook has an associated kernel to which you can connect to. To get the kernel information you need to evaluate the following code in a notebook cell:

    %connect_info

That will give you the name and full path to a json file associated with the kernel, which is what you need to pass to the first entry of the Spyder dialog I mentioned earlier.


Cheers,
Carlos

El 20/05/16 a las 11:14, Stevem escribió:

Stevem

unread,
May 31, 2016, 10:55:02 PM5/31/16
to spyder
Hi,
Under windows,
I have a Linux Docker when IPython is runnin on this IP:



The  %connect_info   gives:
{
  "stdin_port": 40293, 
  "ip": "127.0.0.1", 
  "control_port": 44411, 
  "hb_port": 48341, 
  "signature_scheme": "hmac-sha256", 
  "key": "ee5de886-eb41-4b7c-9bf7-dd751b785a94", 
  "kernel_name": "", 
  "shell_port": 46536, 
  "transport": "tcp", 
  "iopub_port": 36614
}


Is there any conflict in IP and port name ?

Which one should I choose ?

Stevem

unread,
May 31, 2016, 10:55:03 PM5/31/16
to spyder
Thank you Carlos.
How can give contribution to your support in Spyder ?

Octave Oppetit

unread,
Oct 13, 2016, 7:22:50 PM10/13/16
to spyder
Hi Carlos and all,

Thanks for all the insightful answers on using Spyder with remote ipython kernels.

Does connecting to an Ubuntu ipython kernel from Spyder in Windows definitely work now? I'm running into all the errors I read about on this page and others and am not sure if it's actually possible.

Thanks,

Octave
Reply all
Reply to author
Forward
0 new messages