How to change the default browser for Jupyter Notebook?

Learn how to change the default browser for Jupyter Notebook in our step-by-step guide. Ideal for beginners and experts looking to customize their Jupyter experience.

Hire Top Talent

Are you a candidate? Apply for jobs

Quick overview

The problem is about changing the default browser for Jupyter Notebook. Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. By default, Jupyter Notebook opens in your default web browser. However, you may want to change this setting and use a different browser for Jupyter Notebook. The question is about how to make this change.

Hire Top Talent now

Find top Data Science, Big Data, Machine Learning, and AI specialists in record time. Our active talent pool lets us expedite your quest for the perfect fit.

Share this guide

How to change the default browser for Jupyter Notebook: Step-by-Step guide

Step 1: Open the Jupyter Notebook configuration file. If you don't have one, you can create it by running the command "jupyter notebook --generate-config" in your terminal.

Step 2: Once you have the configuration file, open it in a text editor. The file is usually located in the user's home directory and is named ".jupyter/jupyter_notebook_config.py".

Step 3: Look for the following line in the configuration file: "#c.NotebookApp.browser = ''". This line is usually commented out by default (as indicated by the '#' at the beginning of the line).

Step 4: Uncomment this line by removing the '#' at the beginning.

Step 5: Now you can specify the browser that you want Jupyter Notebook to use by default. You should write the name of the browser's executable file in the quotes. For example, if you want to use Google Chrome, the line should look like this: "c.NotebookApp.browser = 'google-chrome'". If you want to use Firefox, the line should look like this: "c.NotebookApp.browser = 'firefox'".

Step 6: Save the changes and close the configuration file.

Step 7: The next time you launch Jupyter Notebook, it should open in the browser you specified. If it doesn't, make sure that the name of the browser's executable file is correct and that the browser is installed on your computer.

Join over 100 startups and Fortune 500 companies that trust us

Hire Top Talent

Our Case Studies

CVS Health, a US leader with 300K+ employees, advances America’s health and pioneers AI in healthcare.

AstraZeneca, a global pharmaceutical company with 60K+ staff, prioritizes innovative medicines & access.

HCSC, a customer-owned insurer, is impacting 15M lives with a commitment to diversity and innovation.

Clara Analytics is a leading InsurTech company that provides AI-powered solutions to the insurance industry.

NeuroID solves the Digital Identity Crisis by transforming how businesses detect and monitor digital identities.

Toyota Research Institute advances AI and robotics for safer, eco-friendly, and accessible vehicles as a Toyota subsidiary.

Vectra AI is a leading cybersecurity company that uses AI to detect and respond to cyberattacks in real-time.

BaseHealth, an analytics firm, boosts revenues and outcomes for health systems with a unique AI platform.

Latest Blogs

Experience the Difference

Matching Quality

Submission-to-Interview Rate

65%

Submission-to-Offer Ratio

1:10

Speed and Scale

Kick-Off to First Submission

48 hr

Annual Data Hires per Client

100+

Diverse Talent

Diverse Talent Percentage

30%

Female Data Talent Placed

81