The answer to the related post How to connect to an existing Jupyter Notebook kernel and inspect variables using the Variable explorer? seems to be that it's just not possible. But what if we try to connect a Jupyter Notebook to a spyder kernel? Could it then be possible to have the kernel available to the Jupyter Notebook, Spyder and the Variable explorer in Spyder?
The article Connecting Spyder IDE to a remote IPython kernel makes it sound somewhat possible:
Doing data science in Jupyter notebook is fun but sometimes you need the ability to poke into variables using the handy variable explorer in Spyder.
Connecting Spyder to a remote kernel is as straightforward as the notebooks. I will walk you through the process.
But I'm not able to reproduce the example, and I'm a bit afraid that I haven't quite understood the authors meaning with the whole article.
This is what I've tried:
1. conda install spyder-kernels
works fine.
2. The same does python -m spyder_kernels.console
:
But I'm having problems with the rest, and the article says nothing about connecting Jupyter Notebook to --existing kernel-19909.json
. I'm also having problems with the part python -m spyder_kernels.console — matplotlib=’inline’ — ip=x.x.x.x -f=./remotemachine.json
.
Any suggestions as to how I can take this further?
System info:
The version of the notebook server is: 5.6.0
CPython 3.7.0
IPython 6.5.0
compiler : MSC v.1912 64 bit (AMD64)
system : Windows
release : 7
machine : AMD64
CPU cores : 8
interpreter: 64bit