These are chat archives for spyder-ide/public

9th
Sep 2018
RudeScotsman
@RudeScotsman
Sep 09 2018 04:07
Hi, I am trying to connect Spyder on my PC (running within Anaconda) to a remote ipython kernel on an AWS EC2 AMI and I'm struggling. I followed the instructions here: http://docs.spyder-ide.org/ipythonconsole.html#connect-to-an-external-kernel and the kernel is running fine on the EC2 AMI and I have the JSON file on my PC but I'm not sure what to enter in the 'Connect to an existing kernel' box. I add the path to the JSON file in the 'Connection info' box. I check the 'This is a remote kernel' box. I enter my EC2 host: 'ec2-user@blah-blah:8888' and then get stuck on the SSH key and password boxes. When I connect to the EC2 AMI from MobaXterm I use an imported Putty key (.ppk) file (and don't use a password) whereas the Spyder dialogue box is asking for a .pem file. Do I need the original AWS .pem key?
CAM Gerlach
@CAM-Gerlach
Sep 09 2018 04:08
@ccordoba12 ?
Carlos Cordoba
@ccordoba12
Sep 09 2018 04:51
@RudeScotsman, if you have your SSH password, then you don't need a key file
CAM Gerlach
@CAM-Gerlach
Sep 09 2018 05:04
@ccordoba12 Should we change the dialog the to indicate that only the password or the keyfile is required? E.g. add some more space between the "Host name" and "SSH key" fields (or a horizontal rule?), and then the text "Or" between the "SSH Key" and "Password" fields? Also, the docs could be clearer about this point; I can add it as part of spyder-ide/spyder-docs#78 .
Carlos Cordoba
@ccordoba12
Sep 09 2018 15:52
@CAM-Gerlach, yes, we need to change the dialog. I didn't know people were confused about that
CAM Gerlach
@CAM-Gerlach
Sep 09 2018 15:55
@ccordoba12 Not sure if you saw, but funny enough the user in spyder-ide/spyder-docs#78 said the exact same thing at the exact same time, jeje. I discuss it a little more there, but I can go ahead and make a separate issue on the main repo for that.
Carlos Cordoba
@ccordoba12
Sep 09 2018 15:56

Not sure if you saw, but funny enough the user in spyder-ide/spyder-docs#78 said the exact same thing at the exact same time

I saw it, yes ;-)

I discuss it a little more there, but I can go ahead and make a separate issue on the main repo for that.

Please do that and add it to our 3.3.2 milestone

CAM Gerlach
@CAM-Gerlach
Sep 09 2018 15:59
Thanks, will do. In work now.
Abeer ALDayel
@AbeerAldayel
Sep 09 2018 16:25
Hi
CAM Gerlach
@CAM-Gerlach
Sep 09 2018 16:25
Hello! What can we do for you?
Abeer ALDayel
@AbeerAldayel
Sep 09 2018 16:27
I'm using IPython 6.2.1 -- An enhanced Interactive Python. Python 3.5.4 . But for some reason I could not activate the notebook when selecting connect from exciting kernel
I got this instead "IPython 6.2.1 -- An enhanced Interactive Python.
Python 3.5.4 "
sorry this message "ipython-input-2-db6556ffc451> in <module>()----> 1 get_ipython().kernel._show_mpl_backend_errors()"
CAM Gerlach
@CAM-Gerlach
Sep 09 2018 16:45

I could not activate the notebook when selecting connect from exciting kernel

Can you explain exactly what you mean by this? "Activate the notebook"? You need the spyder-notebook plugin to work natively with Jupyter Notebooks in Spyder, which is currently still in beta with development paused until Spyder 4's release.

Also, in general, it is a good idea to upgrade to Python 3.6 and a newer IPython version (6.5 is the current) to get the latest features and bug fixes. What version of Spyder are you running?