Metadata-Version: 2.4
Name: nilearn
Version: 0.12.1
Summary: Statistical learning for neuroimaging in Python
Project-URL: Changelog, https://nilearn.github.io/stable/changes/whats_new.html
Project-URL: Development, https://github.com/nilearn/nilearn
Project-URL: Discussions, https://neurostars.org/tag/nilearn
Project-URL: Homepage, https://nilearn.github.io
Author: Nilearn developers
Maintainer-email: Bertrand Thirion <bertrand.thirion@inria.fr>
License-Expression: BSD-3-Clause
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: C
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development
Requires-Python: >=3.9
Requires-Dist: joblib>=1.2.0
Requires-Dist: lxml
Requires-Dist: nibabel>=5.2.0
Requires-Dist: numpy>=1.22.4
Requires-Dist: packaging
Requires-Dist: pandas>=2.2.0
Requires-Dist: requests>=2.25.0
Requires-Dist: scikit-learn>=1.4.0
Requires-Dist: scipy>=1.8.0
Provides-Extra: dev
Requires-Dist: coverage; extra == 'dev'
Requires-Dist: docutils>=0.17; extra == 'dev'
Requires-Dist: furo>=2024.8.6; extra == 'dev'
Requires-Dist: kaleido; (platform_system != 'Windows') and extra == 'dev'
Requires-Dist: kaleido==0.1.0.post1; (platform_system == 'Windows') and extra == 'dev'
Requires-Dist: matplotlib>=3.3.0; extra == 'dev'
Requires-Dist: memory-profiler>=0.61.0; extra == 'dev'
Requires-Dist: myst-parser>=3.0.1; extra == 'dev'
Requires-Dist: numpydoc>=1.8.0; extra == 'dev'
Requires-Dist: plotly!=6.1.0,>=5.0.0; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest-csv; extra == 'dev'
Requires-Dist: pytest-randomly; extra == 'dev'
Requires-Dist: pytest-reporter-html1>=0.9.2; extra == 'dev'
Requires-Dist: pytest-timeout; extra == 'dev'
Requires-Dist: pytest-xdist[psutil]; extra == 'dev'
Requires-Dist: pytest>=6.0.0; extra == 'dev'
Requires-Dist: ruamel-yaml>=0.18.6; extra == 'dev'
Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'dev'
Requires-Dist: sphinx-design>=0.6.1; extra == 'dev'
Requires-Dist: sphinx-gallery>=0.18.0; extra == 'dev'
Requires-Dist: sphinx>=7.4.7; extra == 'dev'
Requires-Dist: sphinxcontrib-bibtex>=2.6.3; extra == 'dev'
Requires-Dist: sphinxcontrib-mermaid>=1.0.0; extra == 'dev'
Requires-Dist: sphinxext-opengraph>=0.9.1; extra == 'dev'
Requires-Dist: tox; extra == 'dev'
Provides-Extra: doc
Requires-Dist: docutils>=0.17; extra == 'doc'
Requires-Dist: furo>=2024.8.6; extra == 'doc'
Requires-Dist: kaleido; (platform_system != 'Windows') and extra == 'doc'
Requires-Dist: kaleido==0.1.0.post1; (platform_system == 'Windows') and extra == 'doc'
Requires-Dist: matplotlib>=3.3.0; extra == 'doc'
Requires-Dist: memory-profiler>=0.61.0; extra == 'doc'
Requires-Dist: myst-parser>=3.0.1; extra == 'doc'
Requires-Dist: numpydoc>=1.8.0; extra == 'doc'
Requires-Dist: plotly!=6.1.0,>=5.0.0; extra == 'doc'
Requires-Dist: ruamel-yaml>=0.18.6; extra == 'doc'
Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'doc'
Requires-Dist: sphinx-design>=0.6.1; extra == 'doc'
Requires-Dist: sphinx-gallery>=0.18.0; extra == 'doc'
Requires-Dist: sphinx>=7.4.7; extra == 'doc'
Requires-Dist: sphinxcontrib-bibtex>=2.6.3; extra == 'doc'
Requires-Dist: sphinxcontrib-mermaid>=1.0.0; extra == 'doc'
Requires-Dist: sphinxext-opengraph>=0.9.1; extra == 'doc'
Provides-Extra: plotly
Requires-Dist: kaleido; (platform_system != 'Windows') and extra == 'plotly'
Requires-Dist: kaleido==0.1.0.post1; (platform_system == 'Windows') and extra == 'plotly'
Requires-Dist: matplotlib>=3.3.0; extra == 'plotly'
Requires-Dist: plotly!=6.1.0,>=5.0.0; extra == 'plotly'
Provides-Extra: plotting
Requires-Dist: kaleido; (platform_system != 'Windows') and extra == 'plotting'
Requires-Dist: kaleido==0.1.0.post1; (platform_system == 'Windows') and extra == 'plotting'
Requires-Dist: matplotlib>=3.3.0; extra == 'plotting'
Requires-Dist: plotly!=6.1.0,>=5.0.0; extra == 'plotting'
Provides-Extra: style
Requires-Dist: tox; extra == 'style'
Provides-Extra: test
Requires-Dist: coverage; extra == 'test'
Requires-Dist: numpydoc>=1.8.0; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: pytest-csv; extra == 'test'
Requires-Dist: pytest-randomly; extra == 'test'
Requires-Dist: pytest-reporter-html1>=0.9.2; extra == 'test'
Requires-Dist: pytest-timeout; extra == 'test'
Requires-Dist: pytest-xdist[psutil]; extra == 'test'
Requires-Dist: pytest>=6.0.0; extra == 'test'
Description-Content-Type: text/x-rst

.. image:: https://img.shields.io/pypi/v/nilearn.svg
    :target: https://pypi.org/project/nilearn/
    :alt: Pypi Package

.. image:: https://img.shields.io/pypi/pyversions/nilearn.svg
    :target: https://pypi.org/project/nilearn/
    :alt: PyPI - Python Version

.. image:: https://github.com/nilearn/nilearn/actions/workflows/build-docs.yml/badge.svg
    :target: https://github.com/nilearn/nilearn/actions/workflows/build-docs.yml
    :alt: Github Actions Doc Build Status

.. image:: https://github.com/nilearn/nilearn/actions/workflows/test_with_tox.yml/badge.svg?branch=main&event=push
    :target: https://github.com/nilearn/nilearn/actions/workflows/test_with_tox.yml
    :alt: Github Actions Test Status

.. image:: https://codecov.io/gh/nilearn/nilearn/graph/badge.svg?token=KpYArSdyXv
    :target: https://app.codecov.io/gh/nilearn/nilearn
    :alt: Coverage Status

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.8397156.svg
    :target: https://doi.org/10.5281/zenodo.8397156

.. image:: https://img.shields.io/badge/bluesky-Follow_nilearn-blue?logo=bluesky
    :target: https://bsky.app/profile/nilearn.bsky.social
    :alt: Bluesky

.. image:: https://img.shields.io/youtube/channel/subscribers/UCU6BMAi2zOhNFnDkbdevmPw
    :target: https://www.youtube.com/@nilearnevents5116
    :alt: YouTube Channel Subscribers

.. image:: https://img.shields.io/mastodon/follow/109669703955432270?domain=https%3A%2F%2Ffosstodon.org%2F
    :target: https://fosstodon.org/@nilearn
    :alt: Mastodon

.. image:: https://img.shields.io/discord/711993354929569843
    :target: https://discord.com/invite/SsQABEJHkZ
    :alt: Discord

nilearn
=======

Nilearn enables approachable and versatile analyses of brain volumes and surfaces.
It provides statistical and machine-learning tools, with instructive documentation & friendly community.

It supports general linear model (GLM) based analysis
and leverages the `scikit-learn <https://scikit-learn.org>`_ Python toolbox
for multivariate statistics with applications
such as predictive modeling, classification, decoding, or connectivity analysis.

Important links
===============

- Official source code repo: https://github.com/nilearn/nilearn/
- HTML documentation (stable release): https://nilearn.github.io/

Install
=======

Latest release
--------------

**1. Setup a virtual environment**

We recommend that you install ``nilearn`` in a virtual Python environment,
either managed with the standard library ``venv`` or with ``conda``
(see `miniconda <https://docs.conda.io/en/latest/miniconda.html>`_ for instance).
Either way, create and activate a new python environment.

With ``venv``:

.. code-block:: bash

    python3 -m venv /<path_to_new_env>
    source /<path_to_new_env>/bin/activate

Windows users should change the last line to ``\<path_to_new_env>\Scripts\activate.bat``
in order to activate their virtual environment.

With ``conda``:

.. code-block:: bash

    conda create -n nilearn python=3.9
    conda activate nilearn

**2. Install nilearn with pip**

Execute the following command in the command prompt / terminal
in the proper python environment:

.. code-block:: bash

    python -m pip install -U nilearn

Development version
-------------------

Please find all development setup instructions in the
`contribution guide <https://nilearn.github.io/stable/development.html#setting-up-your-environment>`_.

Check installation
------------------

Try importing nilearn in a python / iPython session:

.. code-block:: python

    import nilearn

If no error is raised, you have installed nilearn correctly.

Drop-in Hours
=============

The Nilearn team organizes regular online drop-in hours to answer questions,
discuss feature requests, or have any Nilearn-related discussions. Nilearn
drop-in hours occur *every Wednesday from 4pm to 5pm UTC*, and we make sure that at
least one member of the core-developer team is available. These events are held
on `Jitsi Meet <https://meet.jit.si/nilearn-drop-in-hours>`_ and are fully open,
anyone is welcome to join!
For more information and ways to engage with the Nilearn team see
`How to get help <https://nilearn.github.io/stable/development.html#how-to-get-help>`_.

Dependencies
============

The required dependencies to use the software are listed
in the file `pyproject.toml <https://github.com/nilearn/nilearn/blob/main/pyproject.toml>`_.

If you are using nilearn plotting functionalities or running the examples, matplotlib >= 3.3.0 is required.

Some plotting functions in Nilearn support both matplotlib and plotly as plotting engines.
In order to use the plotly engine in these functions,
you will need to install both plotly and kaleido, which can both be installed with pip and anaconda.

If you want to run the tests, you need pytest >= 6.0.0 and pytest-cov for coverage reporting.

Development
===========

Detailed instructions on how to contribute are available at
https://nilearn.github.io/stable/development.html
