

Next, we need to edit the location where the Command Prompt will run in. To fix this, we need to ensure that this shortcut instead directs to the current working directory (the location of the shortcut). You can then save this shortcut with whatever name you wish!Īt this point, double-clicking the shortcut will open Jupyter Notebook in a static default directory (e.g. You can edit the command in the quotation marks to any command you would want, but in this case ‘jupyter notebook’ launches an instance of Jupyter Notebook. Note that cmd will change to the location of the Command Prompt executable file (e.g. C:\Windows\System32\cmd.exe), and ‘/k’ keeps the Command Prompt window open to ensure Jypyter Notebook does not crash. Copy/paste or type the following into the prompt: In this case, we are wanting direct this shortcut to the Command Prompt and have it run the command to open Jupyter Notebook. In the Create Shortcut Windows prompt, type the location of the item you want the Shortcut Icon to direct to.

Right-click, select ‘New’, then create a shortcut. Next, navigate to the folder we want to create your shortcut. To begin, we must have already installed Jupyter Notebook or Jupyter Lab. Just direct them to double-click on the icon and away they go! Creating Your Own Jupyter Notebook Shortcut Please feel free to let me know if you encounter any errors!Ī great application for this shortcut may be to include this shortcut in GitHub folders where you wish to direct someone to launch Jupyter Notebook with minimal confusion. This method allows you to drag-and-drop the icon you create into any folder and have it launch Jupyter Notebook from the new folder. While one trick you can use to open the Command Prompt in this folder is by typing ‘cmd’ in the navigation bar above (shown below) and pressing Enter/Return, I wanted to create a shortcut or icon I could double-click in any given folder and have it open Jupyter Notebook in that same working directory. A petty annoyance I’ve encountered when wanting to open Jupyter Notebook ( overview) is that I couldn’t find a way to instantly open it in my current Windows Explorer window.
