HOW TO

Change the default browser for Jupyter Notebook

Last Published: February 10, 2023

Summary

Jupyter Notebook installed with ArcGIS Pro opens notebooks on the default browser set on the machine. However, the default browser can be changed. This is made possible by generating the jupyter notebook config file and modifying the NotebookApp.browser parameter to the executable file of the browser. This article provides the workflow.

Procedure

  1. Open the Python Command Prompt.
  2. Enter the following command to generate the config file:
jupyter notebook --generate-config
  1. Navigate to the following folder location:
cd C:\Users\user\.jupyter
  1. Open the jupyter_notebook_config.py file using a text editor, for example, IDLE or Notepad.
  2. Search for the following parameter:
#c.NotebookApp.browser = ''
  1. Delete the # and insert the executable browser file location. The example below shows the executable Google Chrome browser file location.
c.NotebookApp.browser = '"C:\Program Files\Google\Chrome\Application\chrome.exe" %s'
Note:
If the folder location contains a space, insert double quotes to include the full folder location.
  1. Save the file and start Jupyter Notebook.

Article ID: 000023596

Software:
  • ArcGIS API for Python 1 x
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 7 x
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options