preloader

Launch Jupyter Lab from Win10 Start Menu

illustrations illustrations illustrations illustrations illustrations illustrations illustrations
Launch Jupyter Lab from Win10 Start Menu

Published on Sep 21, 2020 by Raghuveer Varahagiri

I recently installed Anaconda from scratch on a new development machine. I had to do some custom tweaks to be able to launch Jupyter Notebooks and Jupyter Lab directly from Win10 Start Menu, without first having to launch the Anaconda navigator, and in a default working folder of my choice. Here are the steps …

  1. Install Anaconda distribution with recommended settings
  2. Manually update PATH to make Python and Jupyter available to all programs outside Anaconda

C:\ProgramData\Anaconda3; C:\ProgramData\Anaconda3\Scripts; C:\ProgramData\Anaconda3\Library\bin;

  1. Update the default working folder for Jupyter
  • enter this in Anaconda prompt

    jupyter notebook --generate-config

  • this generates a new file C:\Users\username\.jupyter\jupyter_notebook_config.py

  • edit this file and uncomment and update the line below (use your preferred location here, remember to use double backslashes for path)

    c.NotebookApp.notebook_dir = 'D:\\dev\\code'

  1. Place these two batch files in a local folder - Launch Jupyter Lab.bat & Launch Jupyter Notebook.bat - along with the icon files (available in the github repo below)
  2. Right-click them and “Send to > Desktop (create shortcut)”
  3. Move these shortcut files to the Start Menu folder

C:\ProgramData\Microsoft\Windows\Start Menu\Programs

  1. Right-click the shortcut files and select Properties > Advanced and select the checkbox ‘Run as administrator’

Properties

  1. Also select Properties > Change Icon > Browse > select the corresponding ico file
  2. Optionally right-click these items in Start menu and select ‘Pin to Start”

GitHub Repo : https://github.com/raghuvv/JupyterLab-Setup-Win10

Start Menu Screenshot

Categories:
Tags: