By Ryan Wiles
Jupyter Lab is the next generation replacement for Jupyter Notebook.
Wait a second. Why is Jupyter Notebook being replaced?
First, to get this out of the way, Jupyter Notebook is still available and Jupyter Lab supports your existing Notebooks “
The technologies that Jupyter Notebook were built from are becoming dated and were inhibiting the addition of cool new features. To rectify this, they rewrote the application in a more extensible and flexible manner to keep up with the times. This rewrite has yielded the following benefits:
Since most of what I’ve already discussed regarding Jupyter Notebook still applies (general behavior of the Notebooks, hot-keys, etc) and in keeping with the DRY (Don’t Repeat Yourself) principle, I’m not going to repeat that info here. Either when the legacy Jupyter Notebook is phased out or if I get extremely bored I’ll move all the relevant sections under this tutorial. In the mean time, go ahead and read the Jupyter Notebook tutorial to get the general hang of things. Just remember to substitute the installing and start up instructions there with the ones I given below.
The official install guide can be found here if you care to refer to it: https://jupyterlab.readthedocs.io/en/stable/getting_started/installation.html
Unlike Jupyter Notebook, they are not currently recommending installing through Anaconda, though conda which Anaconda is built on is supported. However, Jupyter Lab comes bundled with the current Anaconda distribution and I consider this the easiest way way to install Jupyter Lab. For details about Anaconda including installation and usage, see The Anaconda Distribution
Other Installation Options:
conda install -c conda-forge jupyterlab # installing via Conda pip install jupyterlab # installing via pip
If you installed using Anaconda, you can start-up Jupyter Lab using either of the two following method. However, if you felt compelled to do a manual install, just follow the Command Line Startup.
Anaconda Navigator Startup:
Command Line Startup:
$ jupyter-lab [I 22:47:33.929 LabApp] JupyterLab extension loaded from /Users/notebook/anaconda3/lib/python3.6/site-packages/jupyterlab [I 22:47:33.929 LabApp] JupyterLab application directory is /Users/notebook/anaconda3/share/jupyter/lab [W 22:47:33.934 LabApp] JupyterLab server extension not enabled, manually loading... [I 22:47:33.934 LabApp] JupyterLab extension loaded from /Users/notebook/anaconda3/lib/python3.6/site-packages/jupyterlab [I 22:47:33.934 LabApp] JupyterLab application directory is /Users/notebook/anaconda3/share/jupyter/lab [I 22:47:33.937 LabApp] Serving notebooks from local directory: /Users/notebook [I 22:47:33.937 LabApp] The Jupyter Notebook is running at: [I 22:47:33.937 LabApp] http://localhost:8888/ [I 22:47:33.937 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [I 22:47:34.442 LabApp] 302 GET /lab (::1) 1.52ms [I 22:47:41.032 LabApp] 302 POST /login?next=%2Flab (::1) 1.12ms [I 22:47:42.235 LabApp] Kernel started: dd3c9c84-ebae-458f-a92d-234a68177e2e [I 22:47:42.785 LabApp] Build is up to date [I 22:47:42.962 LabApp] Adapting to protocol v5.1 for kernel dd3c9c84-ebae-458f-a92d-234a68177e2e [I 22:47:42.963 LabApp] Adapting to protocol v5.1 for kernel dd3c9c84-ebae-458f-a92d-234a68177e2e
Our Notebook Eye Candy Example:
© 2018 Ryan Wiles