Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spyder: variable explorer does not show variable for connected remote kernel

Spyder variable explorer works fine for a local kernel; however, it does not work for the remote kernel. Indeed, the connection to the kernel and running the codes works well but non of the variables are shown in the varibale explorer.

Here is some information:

Python 3.6.8 64-bit | Qt 5.9.4 | PyQt5 5.9.2 | Linux 4.9.0-6-amd64

I also unmarked all filters in "Preferences>Variable explorer>Filter" and followed the posts below but no improvement.

https://github.com/spyder-ide/spyder/issues/7850

Spyder does not show lists and arrays in variable explorer

  • spyder-kernels is installed in both local and remote machines.
  • the connection is through SSH.
  • Spyder is up to date.

Thanks in advance for your helps.

like image 206
ir0098 Avatar asked Aug 11 '26 06:08

ir0098


1 Answers

Had the same problem, objects didn't show up in spyder - variable explorer, fixed it by creating a new env and fresh install for spyder kernels

Create new env

conda create --name python3test python=3

Activate env

conda activate python3test

Install kernel for spyder

conda install spyder-kernels

Generate new kernel and then quit - store kernel name

python -m spyder_kernels.console

Connect to kernel

python -m spyder_kernels.console -f kernel-XXXX.json

Download kernel json file (for me was to Win), launch Spyder and connect to kernel.

like image 121
Paul Cristina Avatar answered Aug 13 '26 04:08

Paul Cristina