Setting the Default Browser for JupyterLab on Linux
To change the default browser for JupyterLab on Linux, follow these steps:
- Open a terminal and run the following command to generate a configuration file for JupyterLab:
jupyter-lab --generate-configThis will create a
jupyter_lab_config.pyfile in$HOME/.jupyter. -
Open this file in your preferred text editor.
- Find the line:
#c.ServerApp.browser = ''Remove the
#to uncomment it. - Replace the empty string
''with the path to your desired browser. For instance, if you want to use Microsoft Edge, update the line to:c.ServerApp.browser = '/opt/microsoft/msedge/msedge %s' - Save the changes.
Now, when you launch JupyterLab, it should open in your chosen browser by default.
Enjoy Reading This Article?
Here are some more articles you might like to read next: