【发布时间】:2020-03-09 15:46:43
【问题描述】:
How to connect to an existing Jupyter Notebook kernel and inspect variables using the Variable explorer? 相关帖子的答案似乎只是不可能。但是,如果我们尝试将 Jupyter Notebook 连接到 spyder 内核会怎样?那么是否可以让 Jupyter Notebook、Spyder 和 Spyder 中的变量浏览器使用内核?
Connecting Spyder IDE to a remote IPython kernel 的文章听起来有点可能:
在 Jupyter notebook 中做数据科学很有趣,但有时你需要 使用方便的变量浏览器插入变量的能力 在 Spyder 中。
将 Spyder 连接到远程内核就像 笔记本。我将引导您完成整个过程。
但是我无法重现这个例子,我有点害怕我没有完全理解作者对整篇文章的意思。
这是我尝试过的:
1. conda install spyder-kernels 工作正常。
2.python -m spyder_kernels.console 也一样:
但我在其他方面遇到了问题,文章没有提到将 Jupyter Notebook 连接到 --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
【问题讨论】:
标签: python jupyter-notebook jupyter jupyter-lab