从PyCharm远程运行jupyter notebook

4
我正在尝试远程运行jupyter笔记本。我设置了python远程解释器、主机、端口等所有内容。我甚至成功连接到带有令牌的jupyter笔记本服务器。问题在于,当我运行一个单元格(打印Hello world)时,会出现一个*标记,但我不确定它是否正在运行。此外,我附上了我的jupyter笔记本配置截图,并出现错误“请选择本地Python解释器”。这里有人遇到过同样的问题吗?我正在使用macOS 10.13.3上的pycharm构建版本#PY-181.4203.547的试用版。

pycharm keeps asking for local interpreter


请在此处检查我的答案:https://dev59.com/FVUL5IYBdhLWcg3w8r6D#49589305 - Pavel Karateev
1个回答

0

我通过在公共 IP 0.0.0.0 和端口 5000 上运行 Jupyter 笔记本服务器来解决了这个问题。

服务器配置:

Server Config

To access the notebook, open this file in a browser:
        file:///run/user/1001/jupyter/nbserver-18243-open.html
    Or copy and paste one of these URLs:
        http://111.11.11.111:5000/?token=ab6f22d9176774b8dccb08cc87414fe8a64bb58e6cc10910 [I 02:28:19.329 NotebookApp] 302 GET / (69.140.134.16) 0.76ms [I 02:28:19.403 NotebookApp] 302 GET /tree? (69.140.134.16) 0.74ms [I 02:28:19.609 NotebookApp] Kernel started: 306aaa82-b824-4fd0-8b8f-dd35271f79ef [W 02:28:19.689 NotebookApp] No session ID specified [I 02:28:20.122 NotebookApp] Adapting to protocol v5.1 for kernel 306aaa82-b824-4fd0-8b8f-dd35271f79ef

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接