Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Working with JupyterLab

Introduction

Learning Objectives

Installing and Setting Up JupyterLab

Using conda

conda create -n geo python=3.12
conda activate geo
conda install -c conda-forge jupyterlab leafmap

Using pip

pip install jupyterlab leafmap

Verifying Your Installation

jupyter lab --version

Getting Started with JupyterLab

Launching JupyterLab

jupyter lab
# Launch on a specific port (useful if the default port is busy)
jupyter lab --port=8889

# Launch without automatically opening browser (useful for remote servers)
jupyter lab --no-browser --port=8888

Understanding the JupyterLab Interface

Creating Your First Notebook in JupyterLab

Essential Keyboard Shortcuts

Understanding Notebook Modes: The Foundation

The Most Important Shortcuts

Command Mode Shortcuts (Press Esc first)

Edit Mode Shortcuts (Press Enter first)

Running Code Examples on MyBinder

Key Takeaways

Exercises

Exercise 1: Setting Up Your Geospatial JupyterLab Environment

conda create -n geolab python=3.12
conda activate geolab
conda install -c conda-forge jupyterlab geopandas matplotlib ipyleaflet

Exercise 2: Mastering Keyboard Shortcuts and Efficient Workflow