有没有办法告诉 jupyter notebook 是用哪个内核构建的?
Is there a way to tell which kernel a jupyter notebook was built with?
我在 Jupyter 中安装了多个内核。在没有在浏览器中完全启动 Jupyter 的情况下,我想知道使用哪个版本的 Python 或 Julia 或 R 来创建笔记本。有没有办法使用命令行查询ipynb文件?
How to know which is running in Jupyter notebook?
讨论如何更改内核。我希望能够查询笔记本。
正如@Georgy所说,你可以使用jq
,即:
ismael-vc@toybox ~/Downloads % cat Untitled.ipynb | jq '.metadata.kernelspec'
{
"display_name": "Julia 0.6.0",
"language": "julia",
"name": "julia-0.6"
}
我在 Jupyter 中安装了多个内核。在没有在浏览器中完全启动 Jupyter 的情况下,我想知道使用哪个版本的 Python 或 Julia 或 R 来创建笔记本。有没有办法使用命令行查询ipynb文件?
How to know which is running in Jupyter notebook? 讨论如何更改内核。我希望能够查询笔记本。
正如@Georgy所说,你可以使用jq
,即:
ismael-vc@toybox ~/Downloads % cat Untitled.ipynb | jq '.metadata.kernelspec'
{
"display_name": "Julia 0.6.0",
"language": "julia",
"name": "julia-0.6"
}