Install#

As an application#

Install openplaces as an application with its own environment.

This is the recommended setup for developers and collaborators.

  • It allows you to use the most recent functionality

  • It allows you to make code contributions.

Get the repository#

  1. Open your Terminal.

    Open Command Prompt or Anaconda Prompt

    Open Terminal

    Open Terminal

  2. Change to the directory where you want to keep the openplaces codebase:

    # Example: 'code' folder in the user directory
    cd ~/code
    
  3. Clone the openplaces Github repository:

    git clone https://github.com/chrnolte/openplaces.git
    
  4. Change into the repository directory:

    cd openplaces
    

Install the environment#

You need to have a version of the Anaconda package manager installed.

Either conda or mamba need to be executable from your Terminal:

Open Anaconda Prompt

Open Terminal

Open Terminal

If you don’t have conda yet, we recommend installing Miniconda, a free, miniature installation of Anaconda.

mamba is a fast environment solver for conda. It will speed up your installation considerably.

If you don’t have it installed, run conda install mamba -y before running the setup script.

When you have mamba ready, run the setup script:

python dev.py setup

The setup script will let you choose the name of your environment.

It will also ask you whether:

  1. You want to install 7z.

    The 7z utility allows you to unpack uncommon formats of compressed .zip files, such as Windows formats used to access public parcels in the state of Virginia, US (US-VA).

  2. You want the QGIS tool installed in the Processing Toolbox.

    This tool allows you to import openplaces’ .parquet tables with associated geometry parquet files as a single, joined vector layer.

  3. You want to install a shortcut in your user folder.

    This lets you type openplaces into your Terminal to:

    • activate your environment

    • start Jupyter in your notebooks folder

    • and open a browser so you can start coding

Configure the environment#

Once the environment is installed, you need to configure your installation.

Uninstall the environment#

To remove your environment, use:

python dev.py clean