Configuring JupyterLab to use the extension
After you install JupyterLab, you need to configure it to secure data access and to enable server extensions.
To configure a password and encryption
-
Set a password to protect the data that you plan to add in the extension. Jupyter provides a password utility. Run the following command and enter your preferred password at the prompt.
jupyter notebook password
The output looks something like the following.
Enter password: Verify password: [NotebookPasswordApp] Wrote hashed password to /home/ubuntu/.jupyter/jupyter_notebook_config.json
-
Enable encryption on the Jupyter server. If you install Jupyter on your local machine, and no one can access it over the network, you can skip this step.
To set up encryption with Transport Layer Security (TLS), create a certificate customized for your environment. For more information, Using Let's Encrypt
in Securing a server in the Jupyter documentation. -
To start JupyterLab, run the following command at the command prompt.
jupyter lab
For more information, see Starting JupyterLab
in the JupyterLab documentation. -
While JupyterLab is running, you can access it at a URL similar to the following:
http://localhost:
8888
/lab. If you set up encryption, use https
instead ofhttp
. If you customized the port, substitute your port number instead of8888
.
Use the following procedure to enable the third-party extensions.
To enable third-party extensions in JupyterLab
-
On the JupyterLab webpage, choose the Extension Manager icon in the menu at left.
-
Read the warning about the risks of running third-party extensions. Only install extensions from developers that you trust.
-
To enable third-party extensions in JupyterLab, choose Enable.
-
Follow the prompts to rebuild and reload JupyterLab.