remote kernel on AWS

494 views
Skip to first unread message

jj

unread,
Jan 15, 2015, 2:56:35 PM1/15/15
to spyd...@googlegroups.com
Hi all,

I need some help connecting to an ipython kernel that is running on an AWS instance.  Here's the basic architecture.

JUMP is a public AWS instance that I can ssh into directly
DEV is a private AWS instance that I can tunnel into via JUMP
LOCAL is my client machine

DEV has ipython notebook server running and is listening on port 8888.

I have setup an ssh tunnel using the following command from LOCAL:

ssh -L 8888:DEV:8888 myusername@ -N

I can confirm that ipython notebook server works by pointing my browser to http://localhost:8888/ which does indeed pull up ipython notebook.
However, when I try to point Spyder to the remote kernel, it doesn't work.  I've tried using DEV's json file for the kernel, that just produces an error.  I've tried leaving the "connection info" field blank and used localhost:8888 as the "Host name" under the "This is a remote kernel" checkbox.  Using the json file gives me a console error ("ValueError: No JSON object could be decoded").  Using "remote kernel" just leaves Spyder with a spinning beach ball (I'm on a mac). 

Can anyone tell me what I'm doing wrong?  Thanks.

P.S. I'm using Spyer 2.3.2 with Python 2.7.8

Adrian Klaver

unread,
Jan 15, 2015, 5:22:42 PM1/15/15
to spyd...@googlegroups.com
Not sure. Have you tried the below in Host name:

myusername@localhost:88888

>
> P.S. I'm using Spyer 2.3.2 with Python 2.7.8
>
> --
> 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
> <mailto:spyderlib+...@googlegroups.com>.
> To post to this group, send email to spyd...@googlegroups.com
> <mailto:spyd...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/d/optout.


--
Adrian Klaver
adrian...@aklaver.com

Carlos Córdoba

unread,
Jan 15, 2015, 5:35:27 PM1/15/15
to spyd...@googlegroups.com
Hi,

To connect to remote kernels, please use the dialog present in the menu

    Consoles > Connect to an existing kernel

That will set the ssh tunnel for you, after you introduce your credentials for it in the dialog.

Cheers,
Carlos

--
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.
Reply all
Reply to author
Forward
0 new messages