question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connecting to remote kernel over SSH

See original GitHub issue

Description

What steps will reproduce the problem?

  • Start a spyder-kernels server on a remote machine (WSL in this case but appears to be the same if a cloud compute instance)
  • Select Consoles / Remote Kernel
  • Configure as per instructions for remote connection via SSH
  • Click connect (or equivalent)
  • crash!

Traceback

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\spyder\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 1097, in create_client_for_kernel
    self._create_client_for_kernel(connection_file, hostname, sshkey,
  File "C:\ProgramData\Anaconda3\envs\spyder\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 1924, in _create_client_for_kernel
    shellwidget.check_spyder_kernel()
  File "C:\ProgramData\Anaconda3\envs\spyder\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 265, in check_spyder_kernel
    self.silent_exec_method(code)
  File "C:\ProgramData\Anaconda3\envs\spyder\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 629, in silent_exec_method
    self._request_info['execute'][msg_id] = self._ExecutionRequest(msg_id,
TypeError: <lambda>() missing 1 required positional argument: 'hidden'

Versions

  • Spyder version: 5.0.5
  • Python version: 3.9.12
  • Qt version: 5.9.7
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  8.3.0 (OK)
jedi =0.17.2                  :  0.17.2 (OK)
jsonschema >=3.2.0            :  4.4.0 (OK)
keyring >=17.0.0              :  23.4.0 (OK)
nbconvert >=4.0               :  6.4.4 (OK)
numpydoc >=0.6.0              :  1.2 (OK)
paramiko >=2.4.0              :  2.8.1 (OK)
parso =0.7.0                  :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.11.2 (OK)
pylint >=1.0                  :  2.9.6 (OK)
pyls >=0.36.2;<1.0.0          :  0.36.2 (OK)
pyls_black >=0.4.6            :  0.4.6 (OK)
pyls_spyder >=0.3.2;<0.4.0    :  0.3.2 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=1.0.2             :  1.0.3 (OK)
qtconsole >=5.1.0             :  5.3.0 (OK)
qtpy >=1.5.0                  :  2.0.1 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=39.0.0           :  61.2.0 (OK)
sphinx >=0.6.6                :  4.4.0 (OK)
spyder_kernels >=2.0.4;<2.1.0 :  2.0.5 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.6 (OK)
zmq >=17                      :  22.3.0 (OK)

# Optional:
cython >=0.21                 :  None (NOK)
matplotlib >=2.0.0            :  None (NOK)
numpy >=1.7                   :  None (NOK)
pandas >=1.1.1                :  None (NOK)
scipy >=0.17.0                :  None (NOK)
sympy >=0.7.3                 :  None (NOK)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
andfoycommented, Jun 16, 2022

@afernando79, we’re glad you found a duplicate issue with a solution, just for reference, I’m cross-linking the corresponding issue here: https://github.com/spyder-ide/spyder/issues/17772

Thanks for using Spyder!

0reactions
dalthvizcommented, Jun 22, 2022

Hi @afernando79 thanks for the feedback! Could you open an issue at https://github.com/spyder-ide/spyder-docs/issues to update the spyder vs spyder-kernels versions compatibility info for Spyder 5.3.x releases? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote Development using SSH - Visual Studio Code
In VS Code, select Remote-SSH: Connect to Host... from the Command Palette (F1, Ctrl+Shift+P) and use the same user@hostname as in step 1....
Read more >
remote kernel through SSH
2- Open command prompt, and connect to the target machine using ssh, command is: ssh hostname . Confirm and make sure the shell...
Read more >
Spyder -- Connect to remote kernel via proxy - ssh
Rather, to connect to it I must go through a bastion host / jumpbox as follows: ssh -i ~/.ssh/id_rsa -J me@jumpbox me@remote which...
Read more >
Remote jupyter notebooks with ssh port forwarding
About this post · create an ssh tunnel to a remote machine behind a firewall · start a jupyter notebook server on this...
Read more >
remote-kernel
Remote kernel is a pure-python package that sets up an ssh connection with port forwarding to a remote host, and starts up an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found