gerrychain


Namegerrychain JSON
Version 0.3.2 PyPI version JSON
download
home_pagehttps://github.com/mggg/GerryChain
SummaryUse Markov chain Monte Carlo to analyze districting plans and gerrymanders
upload_time2024-04-29 21:55:15
maintainerMetric Geometry and Gerrymandering Group
docs_urlNone
authorMetric Geometry and Gerrymandering Group
requires_pythonNone
licenseNone
keywords gerrychain
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==========
GerryChain
==========

.. image:: https://circleci.com/gh/mggg/GerryChain.svg?style=svg
    :target: https://circleci.com/gh/mggg/GerryChain
    :alt: Build Status
.. image:: https://codecov.io/gh/mggg/GerryChain/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/mggg/GerryChain
    :alt: Code Coverage
.. image:: https://readthedocs.org/projects/gerrychain/badge/?version=latest
    :target: https://gerrychain.readthedocs.io/en/latest
    :alt: Documentation Status
.. image:: https://badge.fury.io/py/gerrychain.svg
    :target: https://pypi.org/project/gerrychain/
    :alt: PyPI Package

GerryChain is a Python library for building ensembles of districting plans
using `Markov chain Monte Carlo`_. It is developed and maintained by the
`Metric Geometry and Gerrymandering Group`_ and our network of volunteers.
It is distributed under the `3-Clause BSD License`_.

The basic workflow is to start with the geometry of an initial plan and
generate a large collection of sample plans for comparison. Usually, we
will constrain these sampled plans in such a way that they perform at
least as well as the initial plan according to traditional districting
principles, such as population balance or compactness. Comparing the
initial plan to the ensemble provides quantitative tools for measuring
whether or not it is an outlier among the sampled plans.

.. _`Voting Rights Data Institute`: http://gerrydata.org/
.. _chain: https://github.com/gerrymandr/cfp_mcmc
.. _`Markov chain Monte Carlo`: https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo
.. _`Metric Geometry and Gerrymandering Group`: https://www.mggg.org/
.. _`3-Clause BSD License`: https://opensource.org/licenses/BSD-3-Clause


Getting started
===============

See our `Getting started guide`_ for the basics of using GerryChain.

.. _`Getting started guide`: https://gerrychain.readthedocs.io/en/latest/user/quickstart/

We also highly recommend the resources prepared by Daryl R. DeFord of MGGG
for the 2019 MIT IAP course `Computational Approaches for Political Redistricting`_.

.. _`Computational Approaches for Political Redistricting`: https://people.csail.mit.edu/ddeford//CAPR.php


Useful links
============

- `Documentation`_
- `Bug reports and feature requests`_
- `Contributions welcome!`_

.. _`Documentation`: https://gerrychain.readthedocs.io/en/latest/
.. _`Bug reports and feature requests`: https://github.com/mggg/gerrychain/issues
.. _`Contributions welcome!`: https://github.com/mggg/gerrychain/pulls


Installation
============

Supported Python Versions
-------------------------

The most recent version of GerryChain (as of April 2024) supports

- Python 3.9
- Python 3.10
- Python 3.11

If you do not have one of these versions installed on you machine, we
recommend that you go to the 
`Python website <https://www.python.org/downloads/>`_ and
download the installer for one of these versions. [1]_

A Note for Windows Users
++++++++++++++++++++++++

  If you are using Windows and are new to Python, we recommend that you
  still install Python using the installation package available on 
  the Python website. There are several versions of Python available
  on the Windows Store, but they can be... finicky, and experience seems
  to suggest that downloadable available on the Python website produce
  better results.

  In addition, we recommend that you install the 
  `Windows Terminal <https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab>`_
  from the Microsoft Store. It is still possible to use PowerShell or 
  the Command Prompt, but Windows Terminal tends to be more beginner
  friendly and allows for a greater range of utility than the natively
  installed terminal options (for example, it allows for you to install
  the more recent version of PowerShell, 
  `PowerShell 7 <https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell>`_,
  and for the use of the Linux Subsystem for Windows).


Setting Up a Virtual Environment
--------------------------------

Once Python is installed on your system, you will want to open the terminal
and navigate to the working directory of your project. Here are some brief
instructions for doing so on different systems:

- **MacOS**: To open the terminal, you will likely want to use the
  Spotlight Search (the magnifying glass in the top right corner of
  your screen) to find the "Terminal" application (you can also access
  Spotlight Search by pressing "Command (⌘) + Space"). Once you have
  the terminal open, type ``cd`` followed by the path to your working
  directory. For example, if you are working on a project called
  ``my_project`` in your ``Documents`` folder, you may access by typing
  the command

  .. code-block:: console

    cd ~/Documents/my_project
      
  into the terminal (here the ``~`` is a shortcut for your home directory).
  If you do not know what your working directory is, you can find it by
  navigating to the desired folder in your file explorer, and clicking
  on "Get Info". The path will be labeled "Where" and from there you
  can copy the path to your clipboard and paste it in the terminal.


- **Linux**: Most Linux distributions have the keyboard shortcut
  ``Ctrl + Alt + T`` set to open the terminal. From there you may navigate
  to your working directory by typing ``cd`` followed by the path to your
  working directory. For example, if you are working on a project called
  ``my_project`` in your ``Documents`` folder, you may access this via
  the command
  
  .. code-block:: console

    cd ~/Documents/my_project

  (here the ``~`` is a shortcut for your home directory). If you do not
  know what your working directory is, you can find it by navigating to
  the desired folder in your file explorer, and clicking on "Properties".
  The path will be labeled "Location" and from there you can copy the path
  to your clipboard and paste it in the terminal (to paste in the terminal
  in Linux, you will need to use the keyboard shortcut ``Ctrl + Shift + V``
  instead of ``Ctrl + V``).

- **Windows**: Open the Windows Terminal and type ``cd`` followed by the
  path to your working directory. For example, if you are working on a
  project called ``my_project`` in your ``Documents`` folder, you may
  access this by typing the command

  .. code-block:: console

    cd ~\Documents\my_project

  into the terminal (here the ``~`` is a shortcut for your home directory). 
  If you do not know what your working directory is,
  you can find it by navigating to the desired folder in your file
  explorer, and clicking on "Properties". The path will be labeled
  "Location" and from there you can copy the path to your clipboard
  and paste it in the terminal.


Once you have navigated to your working directory, you will want to
set up a virtual environment. This is a way of isolating the Python
packages you install for this project from the packages you have
installed globally on your system. This is useful because it allows
you to install different versions of packages for different projects
without worrying about compatibility issues. To set up a virtual
environment, type the following command into the terminal:

.. code-block:: console

  python -m venv .venv

This will create a virtual environment in your working directory which
you can see if you list all the files in your working directory via
the command ``ls -a`` (``dir`` on Windows). Now we need to activate the
virtual environment. To do this, type the following command into the
terminal:

- **Windows**: ``.venv\Scripts\activate``
- **MacOS/Linux**: ``source .venv/bin/activate``

You should now see ``(.venv)`` at the beginning of your terminal prompt
now. This indicates that you are in the virtual environment, and are now
ready to install GerryChain.

To install GerryChain from PyPI_, run ``pip install gerrychain`` from
the command line. 

If you plan on using GerryChain's GIS functions, such as computing
adjacencies or reading in shapefiles, then run
``pip install gerrychain[geo]`` from the command line.

This approach sometimes fails due to compatibility issues between our
different Python GIS dependencies, like ``geopandas``, ``pyproj``,
``fiona``, and ``shapely``. If you run into this issue, try installing
the dependencies using the `geo_settings.txt <https://github.com/mggg/GerryChain/tree/main/docs/geo_settings.txt>`_
file. To do this, run ``pip install -r geo_settings.txt`` from the
command line.

.. note::

  If you plan on following through the tutorials present within the
  remainder of this documentation, you will also need to install
  ``matplotlib`` from PyPI_. This can also be accomplished with
  a simple invocation of ``pip install matplotlib`` from the command
  line.

.. _PyPI: https://pypi.org/
.. [1] Of course, if you are using a Linux system, you will either need to use your
  system's package manager or install from source. You may also find luck installing
  Python directly from the package manager if you find installing from source to be
  troublesome.

Making an Environment Reproducible
----------------------------------

If you are working on a project wherein you would like to ensure
particular runs are reproducible, it is necessary to invoke

- **MacOS/Linux**: ``export PYTHONHASHSEED=0``
- **Windows**: 

  - PowerShell ``$env:PYTHONHASHSEED=0``
  - Command Prompt ``set PYTHONHASHSEED=0``

before running your code. This will ensure that the hash seed is deterministic
which is important for the replication of spanning trees across your runs. If you
would prefer to not have to do this every time, then you need to modify the
activation script for the virtual environment. Again, this is different depending
on your operating system:

- **MacOS/Linux**: Open the file ``.venv/bin/activate`` located in your working
  directory using your favorite text editor
  and add the line ``export PYTHONHASHSEED=0`` after the ``export PATH`` command. 
  So you should see something like:: 

    _OLD_VIRTUAL_PATH="$PATH"
    PATH="$VIRTUAL_ENV/Scripts:$PATH"
    export PATH

    export PYTHONHASHSEED=0
  
  Then, verify that the hash seed is set to 0 in your Python environment by
  running ``python`` from the command line and typing 
  ``import os; print(os.environ['PYTHONHASHSEED'])``.

- **Windows**: To be safe, you will need to modify 3 files within your virtual
  environment:

  - ``.venv\Scripts\activate``: Add the line ``export PYTHONHASHSEED=0`` after
    the ``export PATH`` command. So you should see something like:: 

      _OLD_VIRTUAL_PATH="$PATH"
      PATH="$VIRTUAL_ENV/Scripts:$PATH"
      export PATH

      export PYTHONHASHSEED=0

  - ``.venv\Scripts\activate.bat``: Add the line ``set PYTHONHASHSEED=0`` to the
    end of the file. So you should see something like::

      if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
      if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%

      set PATH=%VIRTUAL_ENV%\Scripts;%PATH%
      rem set VIRTUAL_ENV_PROMPT=(.venv) 
      set PYTHONHASHSEED=0

  - ``.venv\Scripts\Activate.ps1``: Add the line ``$env:PYTHONHASHSEED=0`` to the
    end of the before the signature block. So you should see something like::

      # Add the venv to the PATH
      Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
      $Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"

      $env:PYTHONHASHSEED=0

      # SIG # Begin signature block

After you have made these changes, verify that the hash seed is set to 0 in your
Python environment by running ``python`` from the command line and typing 
``import os; print(os.environ['PYTHONHASHSEED'])`` in the Python prompt.

.. admonition:: A Note on Jupyter
  :class: note

  If you are using a jupyter notebook, you will need to make sure that you have
  installed the ``ipykernel`` package in your virtual environment as well as
  either ``jypyternotebook`` or ``jupyterlab``. To install these packages, run
  ``pip install <package-name>`` from the command line. Then, to use the virtual
  python environment in your jupyter notebook, you need to invoke
  
  .. code-block:: console

    jupyter notebook

  or

  .. code-block:: console

    jupyter lab

  from the command line of your working directory *while your virtual environment
  is activated*. This will open a jupyter notebook in your default browser. You may
  then check that the hash seed is set to 0 by running the following code in a cell
  of your notebook:

  .. code-block:: python

    import os
    print(os.environ['PYTHONHASHSEED'])

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mggg/GerryChain",
    "name": "gerrychain",
    "maintainer": "Metric Geometry and Gerrymandering Group",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "engineering@mggg.org",
    "keywords": "GerryChain",
    "author": "Metric Geometry and Gerrymandering Group",
    "author_email": "engineering@mggg.org",
    "download_url": "https://files.pythonhosted.org/packages/94/e0/a446e0f4880639fb7c55bc7882b6364bd175d595f9bb0d7b4eb205e198df/gerrychain-0.3.2.tar.gz",
    "platform": null,
    "description": "==========\nGerryChain\n==========\n\n.. image:: https://circleci.com/gh/mggg/GerryChain.svg?style=svg\n    :target: https://circleci.com/gh/mggg/GerryChain\n    :alt: Build Status\n.. image:: https://codecov.io/gh/mggg/GerryChain/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/mggg/GerryChain\n    :alt: Code Coverage\n.. image:: https://readthedocs.org/projects/gerrychain/badge/?version=latest\n    :target: https://gerrychain.readthedocs.io/en/latest\n    :alt: Documentation Status\n.. image:: https://badge.fury.io/py/gerrychain.svg\n    :target: https://pypi.org/project/gerrychain/\n    :alt: PyPI Package\n\nGerryChain is a Python library for building ensembles of districting plans\nusing `Markov chain Monte Carlo`_. It is developed and maintained by the\n`Metric Geometry and Gerrymandering Group`_ and our network of volunteers.\nIt is distributed under the `3-Clause BSD License`_.\n\nThe basic workflow is to start with the geometry of an initial plan and\ngenerate a large collection of sample plans for comparison. Usually, we\nwill constrain these sampled plans in such a way that they perform at\nleast as well as the initial plan according to traditional districting\nprinciples, such as population balance or compactness. Comparing the\ninitial plan to the ensemble provides quantitative tools for measuring\nwhether or not it is an outlier among the sampled plans.\n\n.. _`Voting Rights Data Institute`: http://gerrydata.org/\n.. _chain: https://github.com/gerrymandr/cfp_mcmc\n.. _`Markov chain Monte Carlo`: https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo\n.. _`Metric Geometry and Gerrymandering Group`: https://www.mggg.org/\n.. _`3-Clause BSD License`: https://opensource.org/licenses/BSD-3-Clause\n\n\nGetting started\n===============\n\nSee our `Getting started guide`_ for the basics of using GerryChain.\n\n.. _`Getting started guide`: https://gerrychain.readthedocs.io/en/latest/user/quickstart/\n\nWe also highly recommend the resources prepared by Daryl R. DeFord of MGGG\nfor the 2019 MIT IAP course `Computational Approaches for Political Redistricting`_.\n\n.. _`Computational Approaches for Political Redistricting`: https://people.csail.mit.edu/ddeford//CAPR.php\n\n\nUseful links\n============\n\n- `Documentation`_\n- `Bug reports and feature requests`_\n- `Contributions welcome!`_\n\n.. _`Documentation`: https://gerrychain.readthedocs.io/en/latest/\n.. _`Bug reports and feature requests`: https://github.com/mggg/gerrychain/issues\n.. _`Contributions welcome!`: https://github.com/mggg/gerrychain/pulls\n\n\nInstallation\n============\n\nSupported Python Versions\n-------------------------\n\nThe most recent version of GerryChain (as of April 2024) supports\n\n- Python 3.9\n- Python 3.10\n- Python 3.11\n\nIf you do not have one of these versions installed on you machine, we\nrecommend that you go to the \n`Python website <https://www.python.org/downloads/>`_ and\ndownload the installer for one of these versions. [1]_\n\nA Note for Windows Users\n++++++++++++++++++++++++\n\n  If you are using Windows and are new to Python, we recommend that you\n  still install Python using the installation package available on \n  the Python website. There are several versions of Python available\n  on the Windows Store, but they can be... finicky, and experience seems\n  to suggest that downloadable available on the Python website produce\n  better results.\n\n  In addition, we recommend that you install the \n  `Windows Terminal <https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab>`_\n  from the Microsoft Store. It is still possible to use PowerShell or \n  the Command Prompt, but Windows Terminal tends to be more beginner\n  friendly and allows for a greater range of utility than the natively\n  installed terminal options (for example, it allows for you to install\n  the more recent version of PowerShell, \n  `PowerShell 7 <https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell>`_,\n  and for the use of the Linux Subsystem for Windows).\n\n\nSetting Up a Virtual Environment\n--------------------------------\n\nOnce Python is installed on your system, you will want to open the terminal\nand navigate to the working directory of your project. Here are some brief\ninstructions for doing so on different systems:\n\n- **MacOS**: To open the terminal, you will likely want to use the\n  Spotlight Search (the magnifying glass in the top right corner of\n  your screen) to find the \"Terminal\" application (you can also access\n  Spotlight Search by pressing \"Command (\u2318) + Space\"). Once you have\n  the terminal open, type ``cd`` followed by the path to your working\n  directory. For example, if you are working on a project called\n  ``my_project`` in your ``Documents`` folder, you may access by typing\n  the command\n\n  .. code-block:: console\n\n    cd ~/Documents/my_project\n      \n  into the terminal (here the ``~`` is a shortcut for your home directory).\n  If you do not know what your working directory is, you can find it by\n  navigating to the desired folder in your file explorer, and clicking\n  on \"Get Info\". The path will be labeled \"Where\" and from there you\n  can copy the path to your clipboard and paste it in the terminal.\n\n\n- **Linux**: Most Linux distributions have the keyboard shortcut\n  ``Ctrl + Alt + T`` set to open the terminal. From there you may navigate\n  to your working directory by typing ``cd`` followed by the path to your\n  working directory. For example, if you are working on a project called\n  ``my_project`` in your ``Documents`` folder, you may access this via\n  the command\n  \n  .. code-block:: console\n\n    cd ~/Documents/my_project\n\n  (here the ``~`` is a shortcut for your home directory). If you do not\n  know what your working directory is, you can find it by navigating to\n  the desired folder in your file explorer, and clicking on \"Properties\".\n  The path will be labeled \"Location\" and from there you can copy the path\n  to your clipboard and paste it in the terminal (to paste in the terminal\n  in Linux, you will need to use the keyboard shortcut ``Ctrl + Shift + V``\n  instead of ``Ctrl + V``).\n\n- **Windows**: Open the Windows Terminal and type ``cd`` followed by the\n  path to your working directory. For example, if you are working on a\n  project called ``my_project`` in your ``Documents`` folder, you may\n  access this by typing the command\n\n  .. code-block:: console\n\n    cd ~\\Documents\\my_project\n\n  into the terminal (here the ``~`` is a shortcut for your home directory). \n  If you do not know what your working directory is,\n  you can find it by navigating to the desired folder in your file\n  explorer, and clicking on \"Properties\". The path will be labeled\n  \"Location\" and from there you can copy the path to your clipboard\n  and paste it in the terminal.\n\n\nOnce you have navigated to your working directory, you will want to\nset up a virtual environment. This is a way of isolating the Python\npackages you install for this project from the packages you have\ninstalled globally on your system. This is useful because it allows\nyou to install different versions of packages for different projects\nwithout worrying about compatibility issues. To set up a virtual\nenvironment, type the following command into the terminal:\n\n.. code-block:: console\n\n  python -m venv .venv\n\nThis will create a virtual environment in your working directory which\nyou can see if you list all the files in your working directory via\nthe command ``ls -a`` (``dir`` on Windows). Now we need to activate the\nvirtual environment. To do this, type the following command into the\nterminal:\n\n- **Windows**: ``.venv\\Scripts\\activate``\n- **MacOS/Linux**: ``source .venv/bin/activate``\n\nYou should now see ``(.venv)`` at the beginning of your terminal prompt\nnow. This indicates that you are in the virtual environment, and are now\nready to install GerryChain.\n\nTo install GerryChain from PyPI_, run ``pip install gerrychain`` from\nthe command line. \n\nIf you plan on using GerryChain's GIS functions, such as computing\nadjacencies or reading in shapefiles, then run\n``pip install gerrychain[geo]`` from the command line.\n\nThis approach sometimes fails due to compatibility issues between our\ndifferent Python GIS dependencies, like ``geopandas``, ``pyproj``,\n``fiona``, and ``shapely``. If you run into this issue, try installing\nthe dependencies using the `geo_settings.txt <https://github.com/mggg/GerryChain/tree/main/docs/geo_settings.txt>`_\nfile. To do this, run ``pip install -r geo_settings.txt`` from the\ncommand line.\n\n.. note::\n\n  If you plan on following through the tutorials present within the\n  remainder of this documentation, you will also need to install\n  ``matplotlib`` from PyPI_. This can also be accomplished with\n  a simple invocation of ``pip install matplotlib`` from the command\n  line.\n\n.. _PyPI: https://pypi.org/\n.. [1] Of course, if you are using a Linux system, you will either need to use your\n  system's package manager or install from source. You may also find luck installing\n  Python directly from the package manager if you find installing from source to be\n  troublesome.\n\nMaking an Environment Reproducible\n----------------------------------\n\nIf you are working on a project wherein you would like to ensure\nparticular runs are reproducible, it is necessary to invoke\n\n- **MacOS/Linux**: ``export PYTHONHASHSEED=0``\n- **Windows**: \n\n  - PowerShell ``$env:PYTHONHASHSEED=0``\n  - Command Prompt ``set PYTHONHASHSEED=0``\n\nbefore running your code. This will ensure that the hash seed is deterministic\nwhich is important for the replication of spanning trees across your runs. If you\nwould prefer to not have to do this every time, then you need to modify the\nactivation script for the virtual environment. Again, this is different depending\non your operating system:\n\n- **MacOS/Linux**: Open the file ``.venv/bin/activate`` located in your working\n  directory using your favorite text editor\n  and add the line ``export PYTHONHASHSEED=0`` after the ``export PATH`` command. \n  So you should see something like:: \n\n    _OLD_VIRTUAL_PATH=\"$PATH\"\n    PATH=\"$VIRTUAL_ENV/Scripts:$PATH\"\n    export PATH\n\n    export PYTHONHASHSEED=0\n  \n  Then, verify that the hash seed is set to 0 in your Python environment by\n  running ``python`` from the command line and typing \n  ``import os; print(os.environ['PYTHONHASHSEED'])``.\n\n- **Windows**: To be safe, you will need to modify 3 files within your virtual\n  environment:\n\n  - ``.venv\\Scripts\\activate``: Add the line ``export PYTHONHASHSEED=0`` after\n    the ``export PATH`` command. So you should see something like:: \n\n      _OLD_VIRTUAL_PATH=\"$PATH\"\n      PATH=\"$VIRTUAL_ENV/Scripts:$PATH\"\n      export PATH\n\n      export PYTHONHASHSEED=0\n\n  - ``.venv\\Scripts\\activate.bat``: Add the line ``set PYTHONHASHSEED=0`` to the\n    end of the file. So you should see something like::\n\n      if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%\n      if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%\n\n      set PATH=%VIRTUAL_ENV%\\Scripts;%PATH%\n      rem set VIRTUAL_ENV_PROMPT=(.venv) \n      set PYTHONHASHSEED=0\n\n  - ``.venv\\Scripts\\Activate.ps1``: Add the line ``$env:PYTHONHASHSEED=0`` to the\n    end of the before the signature block. So you should see something like::\n\n      # Add the venv to the PATH\n      Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH\n      $Env:PATH = \"$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH\"\n\n      $env:PYTHONHASHSEED=0\n\n      # SIG # Begin signature block\n\nAfter you have made these changes, verify that the hash seed is set to 0 in your\nPython environment by running ``python`` from the command line and typing \n``import os; print(os.environ['PYTHONHASHSEED'])`` in the Python prompt.\n\n.. admonition:: A Note on Jupyter\n  :class: note\n\n  If you are using a jupyter notebook, you will need to make sure that you have\n  installed the ``ipykernel`` package in your virtual environment as well as\n  either ``jypyternotebook`` or ``jupyterlab``. To install these packages, run\n  ``pip install <package-name>`` from the command line. Then, to use the virtual\n  python environment in your jupyter notebook, you need to invoke\n  \n  .. code-block:: console\n\n    jupyter notebook\n\n  or\n\n  .. code-block:: console\n\n    jupyter lab\n\n  from the command line of your working directory *while your virtual environment\n  is activated*. This will open a jupyter notebook in your default browser. You may\n  then check that the hash seed is set to 0 by running the following code in a cell\n  of your notebook:\n\n  .. code-block:: python\n\n    import os\n    print(os.environ['PYTHONHASHSEED'])\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Use Markov chain Monte Carlo to analyze districting plans and gerrymanders",
    "version": "0.3.2",
    "project_urls": {
        "Homepage": "https://github.com/mggg/GerryChain"
    },
    "split_keywords": [
        "gerrychain"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a20190cdaa1bfb1536e1aa773671baccafe3bfde648960c584416a9e26bea9f8",
                "md5": "23607b98ac752a45f9a5d53f15fced71",
                "sha256": "1241d16f4a7374d679227ea5a9eacae9db9386e1598ac02daeded7d4d007035e"
            },
            "downloads": -1,
            "filename": "gerrychain-0.3.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "23607b98ac752a45f9a5d53f15fced71",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 87940,
            "upload_time": "2024-04-29T21:55:12",
            "upload_time_iso_8601": "2024-04-29T21:55:12.712529Z",
            "url": "https://files.pythonhosted.org/packages/a2/01/90cdaa1bfb1536e1aa773671baccafe3bfde648960c584416a9e26bea9f8/gerrychain-0.3.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "94e0a446e0f4880639fb7c55bc7882b6364bd175d595f9bb0d7b4eb205e198df",
                "md5": "ddd5e4022f115a71435d4840f35ef0eb",
                "sha256": "321d1ebd34408aa4cae457220365ce76a7e12f56efe43a81d34cede9bb4377df"
            },
            "downloads": -1,
            "filename": "gerrychain-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ddd5e4022f115a71435d4840f35ef0eb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 95564,
            "upload_time": "2024-04-29T21:55:15",
            "upload_time_iso_8601": "2024-04-29T21:55:15.042227Z",
            "url": "https://files.pythonhosted.org/packages/94/e0/a446e0f4880639fb7c55bc7882b6364bd175d595f9bb0d7b4eb205e198df/gerrychain-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-29 21:55:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mggg",
    "github_project": "GerryChain",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "circle": true,
    "lcname": "gerrychain"
}
        
Elapsed time: 0.22837s