我刚刚在Windows 10中通过pip安装了Jupyter(Python版本为3.7.2),通过调用启动了jupyter服务器,并jupyter notebook在我的Web浏览器中创建了一个带有内核python3的新笔记本,但是从未实现与内核的连接。
在命令行中没有明显的错误:
C:\Users\xxxx>jupyter notebook
[I 21:18:21.005 NotebookApp] Serving notebooks from local directory: C:\Users\xxxx
[I 21:18:21.005 NotebookApp] The Jupyter Notebook is running at:
[I 21:18:21.006 NotebookApp] http://localhost:8888/?token=5743fcbbc805efa4b36c983a7beb63b95cf922957378d64f
[I 21:18:21.007 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:18:21.087 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/xxxx/AppData/Roaming/jupyter/runtime/nbserver-18416-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=5743fcbbc805efa4b36c983a7beb63b95cf922957378d64f
[I 21:18:33.777 NotebookApp] Creating new notebook in
[I 21:18:35.512 …Run Code Online (Sandbox Code Playgroud) 这是我第一次尝试运行 Pycharm Jupyter Notebook 项目。
1)创建一个项目MyPythonProject。完毕!
2)创建一个新的MyJupyterNotebook。完毕!
3) 在三角形单元格中输入 print('hello')。按下绿色的运行按钮!
Dialog appears saying please enter JupyterNotebook URL and Auth token)
Run Code Online (Sandbox Code Playgroud)
4)很公平,我进入命令提示符类型> Jupyter Notebook
仔细记录一下 http://localhost:8888=/?token=4e209a6963b8dab232c0b03379d5321431726df7713c53e0
5)将其输入到黑色小对话框中!
6)似乎连接没有错误,但是没有反馈。事实上,我可以将垃圾放入单元格中,例如#$#$$%#$#@!在单元格中,仍然看不到任何输出。
那么我的输出去哪里了?连接后看不到此笔记本?我在 PyCharm 中的任何地方都没有看到执行单元的任何结果。例如,我在单元格中放入了垃圾,但在 pycharm 中没有看到任何输出或错误。我也把
print('hello world')
Run Code Online (Sandbox Code Playgroud)
(原文如此)并没有看到任何输出。
我也没有看到这个笔记本已从 PyCharm 加载。我想知道如果需要的话我将如何重置令牌,因为对话框刚刚抓住了它,我想它在项目设置中的某个地方......我确信我错过了一些东西,但我真的认为我此时会看到某种类型的输出当我运行一个单元格时。任何想法有什么问题吗?
更新:我确实在 pycharm 之外的 Jupyter Notebook 浏览器中使用文件资源管理器加载了笔记本,并且我再次看到了文件的内容。但在pycharm中仍然看不到任何输出
似乎最新的龙卷风版本无法按照上面的答案工作。