SciPy Contributor Guide

This guide is designed to help you quickly find the information you need about SciPy development after you’ve reviewed the introductory material in Ways to Contribute. If you’re new to this and want to start coding ASAP, you’ve found the right place.

  • Development Environment - how to set up and maintain a development environment, including installing compilers and SciPy dependencies, creating a personal fork of the SciPy repository on GitHub, using git to manage a local repository with development branches, performing an in-place build of SciPy, and creating a virtual environment that adds this development version of SciPy to the Python path

  • Editing SciPy - how to edit SciPy Python code, with tips on finding which module contains SciPy functionality to be edited, adding new modules to SciPy, and complying with PEP8 style standards

  • Unit Tests - how to write and run unit tests for SciPy with the pytest framework

  • Documentation - how to write reStructuredText documentation that complies with docstring standards, build documentation locally with Sphinx, and view documentation built during continuous integration checks

  • Benchmarks - how to benchmark code with AirSpeed Velocity

  • Compiled Code - how to add fast, compiled code to SciPy

Development Environment

Editing SciPy

  • Development workflow lays out what to do after your development environment is set up.

  • SciPy Development Workflow is a five-minute video example of fixing a bug and submitting a pull request.

  • PEP8 and SciPy gives some tips for ensuring that your code is PEP8 compliant.

  • Git for development is a guide to using git, the distributed version-control system used to manage the changes made to SciPy code from around the world.

  • SciPy API contains some important notes about how SciPy code is organized and documents the structure of the SciPy API. If you are going to import other SciPy code, read this first.

  • Reviewing Pull Requests explains how to review another author’s SciPy code locally.

  • NumPy Distutils - Users Guide - Check this out before adding any new files to SciPy.

  • SciPy Core Developer Guide has background information including how decisions are made and how a release is prepared. It’s geared toward Core Developers, but contains useful information for all contributors.

Unit Tests



Compiled Code

  • Adding Cython to SciPy - Extending and compiling Python code with Cython can significantly improve its performance. This document helps you get started.

  • Beyond Python discusses the use of C, C++, and Fortran code in SciPy.