Add to open a context menu Jupyter Notebook

Add a context menuJupyter Notebookturn on

In order to Jupyter working directory specified folder to the next one, every time start CMD terminal, and then activate Anaconda environment, and then start Jupyter Notebook, extremely troublesome. So did the following script to start Jupyter added to the menu, so each time you start Jupyter by little mouse on it.

Note: My Anaconda installation directoryC:\ProgramData\Anaconda3If you need to modify the path is different. If you do not need to activate the installation environment, you can put in the scriptC:\\ProgramData\\Anaconda3\\Scripts\\activate.bat &&Removed.

  1. Windows Registry Editor Version 5.00
  2. [HKEY_CLASSES_ROOT\Directory\Background\shell\Open Jupyter]
  3. @="在 Jupyter Notebook 中打开"
  4. "Icon"="C:\\ProgramData\\Anaconda3\\Menu\\jupyter.ico"
  5. [HKEY_CLASSES_ROOT\Directory\Background\shell\Open Jupyter\command]
  6. @="cmd /K C:\\ProgramData\\Anaconda3\\Scripts\\activate.bat && cd %V && jupyter notebook"
  7. [HKEY_CLASSES_ROOT\Directory\shell\Open Jupyter]
  8. @="在 Jupyter Notebook 中打开"
  9. "Icon"="C:\\ProgramData\\Anaconda3\\Menu\\jupyter.ico"
  10. [HKEY_CLASSES_ROOT\Directory\shell\Open Jupyter\command]
  11. @="cmd /K C:\\ProgramData\\Anaconda3\\Scripts\\activate.bat && cd %1 && jupyter notebook"

Guess you like

Origin www.cnblogs.com/wujingtao/p/11967273.html