[PYTHON] How to specify the launch browser for JupyterLab 3.0.0

Introduction

After upgrading the version of JupyterLab from 2.2.0 to 3.0.0, the startup browser specification did not work, so make a note of the solution.

environment

State that does not work

First, let's talk about what goes wrong. If you search the web for JupyterLab browser specification, you will find the following method. At the command line

command


jupyter notebook --generate-config

To create ~/.jupyter/jupyter/jupyter_notebook_config.py and in jupyter_notebook_config.py

jupyter_notebook_config.py


c.NotebookApp.browser='"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\" %s'

It is a method to specify. Up to JupyterLab 2.x.x, it seems that it also refers to jupyter_notebook_config.py at startup.

However, when it comes to JuypterLab 3.0.0, the startup browser cannot be specified even with the above settings [^ 1]. The specification method has been changed.

Solutions

It's simple, but create a config file with jupyter lab. At the command line

command


jupyter lab --generate-config

Will create ~/.jupyter/jupyter_lab_config.py. In ~/.jupyter/jupyter_lab_config.py

jupyter_lab_config.py


c.ServerApp.browser = '"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\" %s'

Uncomment the, fill in the path of the browser exe and save. Then you can specify the browser to launch in jupyter lab. It seems that the file name of "jupyter_lab_config.py" may be "jupyter_server_config.py" [^ 1].

reference

Recommended Posts

How to specify the launch browser for JupyterLab 3.0.0
How to use MkDocs for the first time
How to specify the NIC to scan with amazon-dash
How to find the correlation for categorical variables
Setting to specify the IP allowed for SSH connection
[Python] How to specify the download location with youtube-dl
How to instantly launch Jupyter Notebook from the terminal
[Python] Summary of how to specify the color of the figure
[Selenium] How to specify the relative path of chromedriver?
How to use the generator
How to use the decorator
How to increase the axis
How to start the program
[python] How to use the library Matplotlib for drawing graphs
How to specify Cache-Control for blob storage in Azure Storage in Python
I didn't know how to use the [python] for statement
How to calculate the autocorrelation coefficient
How to use the zip function
How to use the optparse module
[For non-programmers] How to walk Kaggle
How to read the SNLI dataset
How to get the Python version
[Python] How to import the library
How to launch Explorer from WSL
How to overwrite the output to the console
How to use the ConfigParser module
How to set the output resolution for each keyframe in Blender
How to change the log level of Azure SDK for Python
How to get the printer driver for Oki Mac into Linux
[Introduction to Python] How to use the in operator in a for statement?
How to use machine learning for work? 01_ Understand the purpose of machine learning
[Beginner memo] How to specify the library reading path in Python
How to study for the Deep Learning Association G test (for beginners) [2020 version]
How to display the progress bar (tqdm)
How to use the Spark ML pipeline
[Python] How to specify the window display position and size of matplotlib
How to check local GAE from iPhone browser in the same LAN
Specify the browser to use with Jupyter Notebook. Especially Mac. (And Vivaldi)
How to check the version of Django
How to create * .spec files for pyinstaller.
How to solve the bin packing problem
How to set the server time to Japanese time
How to specify a .ui file in the dialog / widget GUI in PySide
How to manually update the AMP cache
[Linux] How to use the echo command
How to use the Linux grep command
Launch the Discord Python bot for 24 hours.
[LPIC 101] How to specify the disk partition number in the GRUB configuration file
[Python] Organizing how to use for statements
How to get colored output to the console
How to operate Linux from the console
How to specify non-check target in Flake8
[Python] How to set the (client) window size inside the browser with Selenium
How to install Windows Subsystem For Linux
How to use Pylint for PyQt5 apps
How to use "deque" for Python data
How to access the Datastore from the outside
How to use the IPython debugger (ipdb)
How to use fingerprint authentication for KDE
[linux] How to quit without waiting for the other party to disconnect with telnet
Checklist on how to avoid turning the elements of numpy's array with for