如何将Jupyter笔记本电脑连接到Spyder内核?

2024-04-19 05:39:17 发布

您现在位置:Python中文网/ 问答频道 /正文

相关帖子How to connect to an existing Jupyter Notebook kernel and inspect variables using the Variable explorer?的答案似乎是,不可能。但是,如果我们尝试将Jupyter笔记本电脑连接到spyder内核呢?那么,是否可以将内核提供给Jupyter笔记本电脑、Spyder和Spyder中的变量explorer?在

文章Connecting Spyder IDE to a remote IPython kernel让它听起来有点可能:

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.

但是我不能复制这个例子,我有点担心我还没有完全理解作者对整篇文章的意思。在


这就是我尝试过的:


1。conda install spyder-kernels效果不错。在

2.同样的情况python -m spyder_kernels.console 

enter image description here

但是我对其余的部分有问题,文章没有提到将Jupyter笔记本连接到--existing kernel-19909.json。我的零件python -m spyder_kernels.console — matplotlib=’inline’ — ip=x.x.x.x -f=./remotemachine.json也有问题。在

有什么建议可以让我更进一步吗?在

系统信息:

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

Tags: thetois文章jupytervariableskernel内核