简体   繁体   English

在IPython Notebook的Python 3内核中未生成任何输出单元格

[英]No output cells generated in Python 3 Kernel of IPython Notebook

I've tried to install both python2 and python3 kernels as suggested here and here (through pip and pip3 ipykernel install ), but in all the variants I end up with working python2 kernel and almost-working python3 one. 我尝试按照此处此处的建议(通过pippip3 ipykernel install )安装python2python3内核,但是在所有变体中,我最终都可以使用python2内核,并且几乎可以使用python3

python3 kernel is displayed as the option in "New" dropdown menu, but all notebooks created under it don't produce any output. python3内核在“新建”(New)下拉菜单中显示为选项,但是在该内核下创建的所有笔记本均不产生任何输出。

That is, I can create new cell, paste print(5) in there and run it (the runcount to the left will be incremented), but no output cell is produced. 也就是说,我可以创建新的单元格,在其中粘贴print(5)并运行它(左侧的运行计数将增加),但是不会生成任何输出单元格。

Same (no) reaction is observed on syntactically-wrong code. 在语法错误的代码上观察到相同(否)的反应。

Any ideas on where to go? 有什么想法去哪里?

Ok, nevermind, looks like some deeeeep interdependence-out-of-date bug on this specific machine. 好的,没关系,看起来像是这台特定机器上的一些深层的相互依存错误。 After one more from-scratch setup it works. 从头开始进行另一次设置后,它可以工作。 Thank you, Thomas, for assistance! 谢谢托马斯的帮助!

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

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