Skip to content

Instantly share code, notes, and snippets.

@danielkelshaw
Created September 28, 2020 15:17
Show Gist options
  • Save danielkelshaw/1e8583e037b65d74eeb125f8dfb81ffc to your computer and use it in GitHub Desktop.
Save danielkelshaw/1e8583e037b65d74eeb125f8dfb81ffc to your computer and use it in GitHub Desktop.

Python | Jupyter Lab Guide

Jupyter Lab is an excellent tool which allows you to develop Python code interactively. This is a great way to learn the language as you can test short snippets of code and see the output immediately.

Assuming you have python installed, installing Jupyter Lab should be as easy fairly easy.

This guide provides a great overview - take a look at this if the steps below don't work for you.

Installing Jupyter Lab:

Using Conda

$ conda install jupyterlab

In order to use your virtual environments with jupyter lab, there are a few more steps:

$ conda activate venv
(venv)$ conda install ipykernel
(venv)$ ipython kernel install --user --name=<any_name_for_kernel>
(venv)$ conda deactivate

Using Pip

$ pip install jupyterlab

In order to use your virtual environments with jupyter lab, there are a few more steps:

$ source venv/bin/activate
(venv)$ pip install ipykernel
(venv)$ python -m ipykernel install --name=<any_name_for_kernel>
(venv)$ deactivate

Running Jupyter Lab

Once you have got Jupyter Lab installed, it can be run from the command line:

$ jupyter lab

This should open up a webpage in your browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment