Skillversitas

JupyterLab Installation and Getting Started

JupyterLab installs with pip and launches with a single command. Getting started means launching the server, creating your first notebook or console, and learning the launcher - after that, the workflow is familiar notebook work inside a more capable shell.

Install

pip install jupyterlab
jupyter lab --version

Installing jupyter (the metapackage) also brings Lab; if you already have classic notebook, upgrading is a plain pip install --upgrade jupyterlab.

Launch

jupyter lab

The browser opens the Launcher: buttons for new Python 3 notebook, console, text file, and terminal, plus a file browser of the server's root directory. A kernel indicator appears when a notebook is running.

First Notebook in Lab

  1. Launcher -> New -> Notebook -> Python 3.
  2. Type in the first cell, Shift+Enter to run.
  3. Open a second cell with A (command mode); insert Markdown with M.
  4. Split the layout: drag the notebook tab to create a side panel, open a terminal in it.

Installing an Extension

# the built-in git extension (or any labextension)
jupyter labextension list
# example: install a community extension from npm
jupyter labextension install @jupyterlab/toc

Configuration

jupyter lab --generate-config
# edit ~/.jupyter/jupyter_lab_config.py
# c.ServerApp.port = 8888
# c.ServerApp.token = "change-me"

Summary

pip install jupyterlab, run jupyter lab, and use the Launcher to create notebooks, consoles, files, and terminals in one workspace. Install features as labextensions with jupyter labextension install, and configure the server with --generate-config. The document model is the same .ipynb as always - only the interface changes.