Skip to content
Computing with Python functions.
Python Shell Other
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci MAINT: rename circleci.yml to be compliant with v2 (#771) Sep 5, 2018
benchmarks benchmarks: fix broken loop in script (#542) Aug 21, 2017
continuous_integration BUG fix reported number of jobs in effective_n_jobs (#985) Jan 6, 2020
doc update (#973) Dec 12, 2019
examples [DOC] More typos (#814) Nov 23, 2018
joblib catch new TimeoutError thrown by distributed (#1003) Feb 4, 2020
.coveragerc ENH add initializer limiting n_threads for C-libs (#701) Jun 22, 2018
.gitignore Revert pkg resources (#971) Dec 10, 2019
.mailmap add basic .mailmap Apr 4, 2012
.readthedocs-requirements.txt [MRG] numpy_pickle: several enhancements (#626) Jun 13, 2018
.travis.yml catch new TimeoutError thrown by distributed (#1003) Feb 4, 2020
CHANGES.rst BUG fix reported number of jobs in effective_n_jobs (#985) Jan 6, 2020
LICENSE.txt Add LICENSE.txt Nov 21, 2016 Make sure sdist ships all we need Oct 23, 2008
Makefile ENH add initializer limiting n_threads for C-libs (#701) Jun 22, 2018
README.rst Add optional dependency on psutil Aug 30, 2018
TODO.rst Misc: notes about dill Jul 11, 2012
appveyor.yml CI failing fixes (sklearn doctests and joblib.hash on windows) (#969) Dec 9, 2019
azure-pipelines.yml Set up new CI with Azure Pipelines Jan 17, 2020 Setup faulthandler.dump_traceback_later after pytest (#975) Dec 12, 2019
readthedocs.yml Add configuration for readthedocs Mar 2, 2017
setup.cfg CI failing fixes (sklearn doctests and joblib.hash on windows) (#969) Dec 9, 2019 Change to import setup from setuptools which supports (#924) Sep 12, 2019


Joblib version Travis build status AppVeyor build status Codecov coverage

The homepage of joblib with user documentation is located on:

Getting the latest code

To get the latest code using git, simply type:

git clone git://

If you don't have git installed, you can download a zip or tarball of the latest code:


You can use pip to install joblib:

pip install joblib

from any directory or:

python install

from the source directory.


  • Joblib has no mandatory dependencies besides Python (supported versions are 2.7+ and 3.4+).
  • Joblib has an optional dependency on Numpy (at least version 1.6.1) for array manipulation.
  • Joblib includes its own vendored copy of loky for process management.
  • Joblib can efficiently dump and load numpy arrays but does not require numpy to be installed.
  • Joblib has an optional dependency on python-lz4 as a faster alternative to zlib and gzip for compressed serialization.
  • Joblib has an optional dependency on psutil to mitigate memory leaks in parallel worker processes.
  • Some examples require external dependencies such as pandas. See the instructions in the Building the docs section for details.

Workflow to contribute

To contribute to joblib, first create an account on github. Once this is done, fork the joblib repository to have your own repository, clone it using 'git clone' on the computers where you want to work. Make your changes in your clone, push them to your github account, test them on several computers, and when you are happy with them, send a pull request to the main repository.

Running the test suite

To run the test suite, you need the pytest (version >= 3) and coverage modules. Run the test suite using:

pytest joblib

from the root of the project.

Building the docs

To build the docs you need to have sphinx (>=1.4) and some dependencies installed:

pip install -U -r .readthedocs-requirements.txt

The docs can then be built with the following command:

make doc

The html docs are located in the doc/_build/html directory.

Making a source tarball

To create a source tarball, eg for packaging or distributing, run the following command:

python sdist

The tarball will be created in the dist directory. This command will compile the docs, and the resulting tarball can be installed with no extra dependencies than the Python standard library. You will need setuptool and sphinx.

Making a release and uploading it to PyPI

This command is only run by project manager, to make a release, and upload in to PyPI:

python sdist bdist_wheel upload_docs --upload-dir doc/_build/html
twine upload dist/*

Updating the changelog

Changes are listed in the CHANGES.rst file. They must be manually updated but, the following git command may be used to generate the lines:

git log --abbrev-commit --date=short --no-merges --sparse


joblib is BSD-licenced (3 clause):

This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative.

Copyright (c) 2009-2011, joblib developpers All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Gael Varoquaux. nor the names of other joblib contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

You can’t perform that action at this time.