我想用jupyter编写和编辑python代码。我打开了一个.ipynb文件,但是在右上角看到“无法找到”,我无法执行任何我编写的代码。有什么奇怪的是,我会打开其他.ipynb文件,并没有问题。另外,当我点击红色的“None not found”图标时,我会看到“The'None'内核不可用,请选择另一个合适的内核,或者安装该内核。”我已经安装了Python 3.5.2。我怀疑问题是jupyter没有检测到Python 3内核?它显示“Python [root]”,它应该说“Python 3”。有谁知道如何解决这个问题?为什么jupyter显示“None not found”?
20
A
回答
3
我怀疑那个特定.ipynb
文件包含一些元数据,指定你没有安装内核 - 见the file format specification。
如果你打开一个文本编辑器,文件,然后搜索metadata
你应该看到的东西看起来像:
{
"metadata" : {
"signature": "hex-digest", # used for authenticating unsafe outputs on load
"kernel_info": {
# if kernel_info is defined, its name field is required.
"name" : "the name of the kernel"
},
"language_info": {
# if language_info is defined, its name field is required.
"name" : "the programming language of the kernel",
"version": "the version of the language",
"codemirror_mode": "The name of the codemirror mode to use [optional]"
}
},
"nbformat": 4,
"nbformat_minor": 0,
"cells" : [
# list of cell dictionaries, see below
],
}
一个选项是改变内核和语言的条目为空字典,但你可能会发现,这笔记本实际上是一个iR笔记本,或其他几个。
0
在新安装之前工作的笔记本上全新安装Anaconda后出现同样的问题。我安装了旧版本(3 4.0.0),问题已修复。
29
我在这里有同样的问题。对我来说,解决办法是:
-
在内核菜单
- - >更改内核 - >选择Python [根](或 你想要的内核),
- 保存文件,
- 接近它,
- 重新打开它。
+0
这是工作,谢谢! –
1
更改内核的Python [根] 保存,关闭并重新打开
相关问题
- 1. 为什么是ppm:command not found?
- 2. 显示:none style not working
- 3. 为什么它在输出中显示None None
- 4. 为什么'if not None'返回True?
- 5. 为什么这个javac:File Not Found错误?
- 6. found/not found found with shared_ptr指示
- 7. 为什么sbt构建失败,并显示“MissingRequirementError:object scala.runtime in compiler mirror not found。”?
- 8. 显示:none fields are not posting to controller
- 9. 显示:none not for textarea wrap within元素
- 10. $ _COOKIE显示cookie,INSPECT does not!为什么?
- 11. Gruntfile失败,并显示Warning:Task“default”not found
- 12. Intranet网站显示“MainMenu.css 404(Object Not Found)”
- 13. SDWebImage显示“URL not found”(尽管存在)
- 14. Bash文件显示“ln:command not found”
- 15. Gruntfile失败,并显示Warning:Task“taskname”not found
- 16. Spark cell magic not found
- 17. 用显示隐藏列表标记none none does not work
- 18. bash:print:command not found
- 19. “Class not found”我错过了什么?
- 20. BadImageFormatException 0x80131124(Index not found)是什么意思?
- 21. sqlsrv_connect()not found
- 22. NetworkError:404 Not Found
- 23. Capistrano bundler not found
- 24. 为什么Spring Boot为不同的实体处理“404 Not Found”?
- 25. jstat:command not found
- 26. SockJs - 'info'path not found
- 27. Facades:aliasloader not found
- 28. Make:command could not be found
- 29. Android typefont not found
- 30. -bash:pscp:command not found
这经常发生,例如,当您更新ipynb文件从Jupyter版本3至4。您只需要选择根内核和保存文件。然后再打开它,你应该有新的内核。 –