Tutorial 1: Installing Jupyter Notebook
For running pywapor locally on your laptop, you need to install Python program and install pywapor package in your python environment. This can be done in several ways, however, we recommend you use Mamba package manager, because it is fast, robust, and cross-platform.
Once you have python and pywapor installed, you can run pywapor model through Python console (command line interface). However, we recommend you to use Jupyter Lab interface. JupyterLab is a web-based interactive development environment for notebooks, code, and data. It will allows you take notes, interact with you python scripts and save the outputs in digital notebooks.
In this book, we will take you through the steps to install python and python packages on your PC. The instructions are adapted from GISOpenCourseWare
3. Create a Python environment
Before setting up a new Python environment, let's review the advantages of virtual environments and why they are crucial for Python projects (from Christian Mills tutorial).
- Isolation of Dependencies: Virtual environments create isolated spaces for each project, allowing developers to install and manage different package versions without conflicts. This isolation ensures that the specific dependencies required for one project do not interfere with or break the dependencies of another project.
- Easier Project Management: Virtual environments help streamline project management by maintaining separate configurations for different projects. Developers can replicate or share project environments with team members, ensuring consistent behavior across various machines. Shareable project environments help developers collaborate, troubleshoot, and deploy projects.
- Simplified System Maintenance: Using virtual environments helps developers avoid cluttering their system-wide Python installation with numerous packages and varying versions. System maintenance is cleaner as developers can easily add, update, or remove packages within individual project environments without affecting other projects or the system as a whole.