简体   繁体   English

Jupyter 笔记本不适用于 Pycharm

[英]Jupyter notebook not working with Pycharm

I am trying to use jupyter notebook on Pycharm.我正在尝试在 Pycharm 上使用 jupyter notebook。
Following this article , I ran a simple Hello World code but nothing shows up.这篇文章之后,我运行了一个简单的 Hello World 代码,但没有任何显示。 I got some logs like this.我得到了一些这样的日志。

/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

I change the port which jupyter is running to 8888 and 8080, but it didn't work.我将 jupyter 运行的端口更改为 8888 和 8080,但是没有用。
I use Pycharm professional 2020.2, Jupyter Notebook 6.1.1 , Python 3.7 on openSUSE 15.2.我在 openSUSE 15.2 上使用 Pycharm Professional 2020.2、Jupyter Notebook 6.1.1、Python 3.7。
I hope to receive some help.我希望得到一些帮助。

To start working with Jupyter notebooks in PyCharm: Create a new Python project, specify a virtual environment, and install the jupyter package.在 PyCharm 中开始使用 Jupyter 笔记本:创建一个新的 Python 项目,指定一个虚拟环境,然后安装 jupyter 包。

Open or create a .ipynb file.打开或创建一个.ipynb文件。

Add and edit source cells.添加和编辑源单元格。

Execute any of the code cells to launch the Jupyter server.执行任何代码单元以启动 Jupyter 服务器。

Analyze execution results in the Preview pane.在预览窗格中分析执行结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM