注册表Regedit实现目录下右键直接打开jupyter

日常写Python时常需要Jupyter,巨懒无比的我为了方便快捷,直接在文件夹下右键,菜单项里直接Jupyter here,超级爽!

右键效果:
在这里插入图片描述

点击效果:
在这里插入图片描述

现在介绍如何实现:

1.打开注册表 / Win+R regedit
进入目录:计算机\HKEY_CLASSES_ROOT\Directory\Background\shell

  • 新建项jupyter,新建两个字符串值,分别修改为
    显示文字:Jupyter Here
    图标 icon“D:\Program Files\Python35\Lib\site-packages\notebook\static\favicon.ico”

  • 在上述项jupyter下新建项:command
    新建字符串值,修改为:“D:\Program Files\Python35\Scripts\jupyter-notebook.exe” --notebook-dir="%V"

相应.exe文件及图标位置需要自行修改!

最终目录结构:
在这里插入图片描述

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/zerothy/article/details/85028244