

Restart Jupyter Notebook and the dark theme should be enabled.

Save the changes and close the text editor.
#JUPYTERLAB THEME CODE#
Open the configuration file in a text editor.įind the line that starts with "c.NotebookApp." and add the following code at the end of that line:Ĭ.JupyterLabTheme.theme = 'JupyterLab Dark' This should create a configuration file called "jupyter notebookconfig.py" in your home directory. Type the following command to open the Jupyter Notebook configuration file: Open the terminal or command prompt on your computer. Option 2: Enabling the Dark Theme via the Configuration File The page should now reload with the new dark theme applied. Select the "JupyterLab Dark" option from the list of available themes. Open Jupyter Notebook in your web browser.Ĭlick on the "Settings" button on the right-hand side of the screen.Ĭlick on the "JupyterLab Theme" option in the drop-down menu. Option 1: Enabling the Dark Theme via the Interface You can either do it by using the Jupyter Notebook interface or by modifying the configuration file directly.
#JUPYTERLAB THEME HOW TO#
How to Enable the Dark Theme Using Jupyter Themes Toolbar and Other WaysĮnabling the dark theme in Jupyter Notebook is a straightforward process. In the following sections, we'll discuss how to enable and customize the dark theme, as well as the pros and cons of using it. The Jupyter Notebook Dark Theme is a popular alternative to the default light theme, providing a more pleasant and productive working environment for users who prefer to work in darker settings. This is where the dark theme comes in, which can make the user interface easier on the eyes by reducing the amount of light emitted from the screen.

However, using Jupyter Notebook for extended periods can cause eye strain and fatigue, especially when working in low-light environments. It is widely used in data science and research communities, and its popularity continues to grow. Jupyter Notebook is an open-source web application that allows users to create and share documents that contain live code, equations, visualizations, and narrative text. Introduction to Jupyter Notebook Dark Mode
