我正在尝试在Pycharm上使用jupyter笔记本。
在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 professional 2020.2,Jupyter Notebook 6.1.1和Python 3.7。
我希望能得到一些帮助。
答案 0 :(得分:0)
要开始在PyCharm中使用Jupyter笔记本,请执行以下操作: 创建一个新的Python项目,指定一个虚拟环境,然后安装jupyter软件包。
打开或创建一个.ipynb
文件。
添加和编辑源单元格。
执行任何代码单元以启动Jupyter服务器。
在“预览”窗格中分析执行结果。