Jupyter Kernel:是否可以重命名它们? [英] Jupyter Kernel : Is there a way to rename them?

查看:552
本文介绍了Jupyter Kernel:是否可以重命名它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在发布时错误键入了内核名称: python -m ipykernel安装--name Jupyter的更改内核"菜单中显示了错误的名称.有没有办法只更改名称(无需重新安装并重新安装正确的名称)?我找不到Jupyter在哪里存储已安装内核的名称.也许可以编辑?
谢谢,等等.

I mis-typed the name for the kernel while issuing: python -m ipykernel install --name and the wrong name is showing up the Jupyter's "Change kernel" menu. Is there a way to change just the name (without unstalling and installing it with the right name again)? I could not find where Jupyter is storing the names of the installed kernels. That could perhaps be edited?
Thanks, etc.

推荐答案

您可以使用kernelspec命令获取有关已安装内核的信息.

You can use the kernelspec command to get information about the installed Kernels for your installation.

命令jupyter kernelspec list将为您提供已安装内核的列表,例如:

The command jupyter kernelspec list will provide you a list of the installed Kernels, something like:

Available kernels:
  python2          /Library/Python/2.7/site-packages/ipykernel/resources
  redisworkshop    /Users/tague/Library/Jupyter/kernels/RedisWorkshop
  bash             /Users/tague/Library/Jupyter/kernels/bash

可在相应内核目录的 kernel.json 文件中找到内核的显示名称.
编辑 kernel.json 文件中的display_name属性,下次启动Jupyter时,它将更改显示名称.

The display name for a kernel is found in the kernel.json file in the corresponding directory for the kernel.
Edit the display_name property in the kernel.json file and it will change the display name next time you start Jupyter.

这篇关于Jupyter Kernel:是否可以重命名它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆