【问题标题】:Running jupyter notebook remotely from PyCharm从 PyCharm 远程运行 jupyter notebook
【发布时间】:2018-09-21 10:58:31
【问题描述】:

我正在尝试远程运行 jupyter notebook。我设置了 python 远程解释器、主机、端口和一切。我什至使用令牌成功连接到 jupyter notebook 服务器。问题是当我运行一个单元格时(打印 Hello world)。有一个 * 标记,但我不确定它是否正在运行。我还附上了我的 jupyter notebook 配置的屏幕截图,出现错误“请选择本地 python 解释器”。

这里有人有同样的问题吗?

我在 macOS 10.13.3 上使用 pycharm build #PY-181.4203.547 的试用版。

【问题讨论】:

标签: pycharm jupyter-notebook jupyter


【解决方案1】:

我通过不在本地主机上而是在公共 IP 0.0.0.0 和端口 5000 上创建正在运行的 Jupyter 笔记本服务器解决了这个问题。

服务器配置:

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

【讨论】:

    猜你喜欢
    • 2022-01-12
    • 2016-12-12
    • 2019-08-29
    • 2022-11-11
    • 2021-08-17
    • 2019-08-13
    • 2017-03-11
    • 1970-01-01
    • 2019-11-03
    相关资源
    最近更新 更多