【问题标题】:Jupyter notebook not working with PycharmJupyter 笔记本无法与 Pycharm 一起使用
【发布时间】:2021-01-02 10:41:45
【问题描述】:

我正在尝试在 Pycharm 上使用 jupyter notebook。
this article 之后,我运行了一个简单的 Hello World 代码,但没有任何显示。 我得到了一些这样的日志。

/home/ryuzot/anaconda3/envs/keras_playground2/bin/jupyter notebook --no-browser --port 8888
[I 00:52:46.955 NotebookApp]  Serving notebooks from local directory:
/home/ryuzot/PycharmProjects/keras_playground
[I 00:52:46.955 NotebookApp] Jupyter Notebook 6.1.1 is running at:
[I 00:52:46.955 NotebookApp] http://localhost:8888/? 
token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6
[I 00:52:46.955 NotebookApp]  or http://127.0.0.1:8888/? 
token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6
[I 00:52:46.955 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 00:52:46.957 NotebookApp] 

    To access the notebook, open this file in a browser:
        file:///home/ryuzot/.local/share/jupyter/runtime/nbserver-13870-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6
     or http://127.0.0.1:8888/?token=45771778a508593eb6b45db8b13b2661daea7a4b709846d6

我把jupyter运行的端口改成了8888和8080,但是还是不行。
我在 openSUSE 15.2 上使用 Pycharm 专业版 2020.2、Jupyter Notebook 6.1.1、Python 3.7。
我希望能得到一些帮助。

【问题讨论】:

    标签: python jupyter-notebook pycharm jupyter


    【解决方案1】:

    要开始在 PyCharm 中使用 Jupyter 笔记本: 新建 Python 项目,指定虚拟环境,安装 jupyter 包。

    打开或创建.ipynb 文件。

    添加和编辑源单元格。

    执行任何代码单元以启动 Jupyter 服务器。

    在“预览”窗格中分析执行结果。

    【讨论】:

      猜你喜欢
      • 2017-05-25
      • 2017-02-18
      • 1970-01-01
      • 2018-10-13
      • 2018-04-27
      • 2013-05-07
      • 1970-01-01
      • 2020-03-17
      • 2017-08-18
      相关资源
      最近更新 更多