6. Working with JupyterLab#

6.1. Introduction#

6.2. Learning Objectives#

6.3. Installing and Setting Up JupyterLab#

6.3.1. Using conda#

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

6.3.2. Using pip#

pip install jupyterlab leafmap

6.3.3. Verifying Your Installation#

jupyter lab --version

6.4. Getting Started with JupyterLab#

6.4.1. 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

6.4.2. Understanding the JupyterLab Interface#

6.4.3. Creating Your First Notebook in JupyterLab#

6.5. Essential Keyboard Shortcuts#

6.5.1. Understanding Notebook Modes: The Foundation#

6.5.2. The Most Important Shortcuts#

6.5.3. Command Mode Shortcuts (Press Esc first)#

6.5.4. Edit Mode Shortcuts (Press Enter first)#

6.6. Running Code Examples on MyBinder#

6.7. Key Takeaways#

6.8. Exercises#

6.8.1. 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

6.8.2. Exercise 2: Mastering Keyboard Shortcuts and Efficient Workflow#