Installation

Requirements

  • Python 3.10 or higher

  • NumPy

  • Pandas

  • Matplotlib

  • SciPy

  • Numba

Install from PyPI

Install the package directly from PyPI to use it in your own projects:

pip install parallel-hill-climber

This is the recommended method for using Hill Climber in your code.

Development installation

To explore the examples, modify the code, or contribute:

Option 1: GitHub Codespaces

No local setup required:

  1. Fork the repository on GitHub

  2. Open in GitHub Codespaces

  3. The development environment will be configured automatically

  4. Documentation will be built and served at http://localhost:8000 automatically

  5. The monitoring dashboard will start at http://localhost:8501 automatically

Option 2: Local development

Clone and install locally:

  1. Clone or fork the repository:

    git clone https://github.com/gperdrizet/hill_climber.git
    cd hill_climber
    
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Build documentation (optional):

    cd docs
    make html
    

    View docs by opening docs/build/html/index.html in a browser or serve locally with: python -m http.server 8000 –directory build/html.

  5. Run tests to verify installation:

    # Run all tests
    python -m pytest tests/
    
    # Run specific test file
    python -m pytest tests/test_hill_climber.py
    

    All tests should pass.

Verifying installation

Test that the installation was successful:

import hill_climber
print(f"Hill Climber {hill_climber.__version__} successfully installed!")