Skip to main content

Flyvis Logo

PyPI version Python Tests codecov License

A connectome-constrained deep mechanistic network (DMN) model of the fruit fly visual system in PyTorch.

  • Explore connectome-constrained models of the fruit fly visual system.
  • Generate and test hypotheses about neural computations.
  • Try pretrained models on your data.
  • Develop custom models using our framework.

Flyvis is our official implementation of Lappalainen et al., "Connectome-constrained networks predict neural activity across the fly visual system." Nature (2024).

Documentation

For detailed documentation, installation instructions, tutorials, and API reference, visit our documentation website.

Tutorials

Explore our tutorials to get started with flyvis. You can read the prerun tutorials in the docs or try them yourself for a quick start in Google Colab:

  1. Explore the Connectome

  2. Train the Network on the Optic Flow Task

  3. Flash Responses

  4. Moving Edge Responses

  5. Ensemble Clustering

  6. Maximally Excitatory Stimuli

  7. Custom Stimuli

Main Results

Find the notebooks for the main results in the documentation.

Citation

@article{lappalainen2024connectome,
	title = {Connectome-constrained networks predict neural activity across the fly visual system},
	issn = {1476-4687},
	url = {https://doi.org/10.1038/s41586-024-07939-3},
	doi = {10.1038/s41586-024-07939-3},
	journal = {Nature},
	author = {Lappalainen, Janne K. and Tschopp, Fabian D. and Prakhya, Sridhama and McGill, Mason and Nern, Aljoscha and Shinomiya, Kazunori and Takemura, Shin-ya and Gruntman, Eyal and Macke, Jakob H. and Turaga, Srinivas C.},
	month = sep,
	year = {2024},
}

Links

Correspondence

For questions or inquiries, please contact us.

Release files for flyvis 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flyvis 1.2.0
File Size Uploaded
flyvis-1.2.0.tar.gz 30.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for flyvis 1.2.0
File Interpreter ABI Platform
flyvis-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 MB

Release files / flyvis-1.2.0.tar.gz

Download URL flyvis-1.2.0.tar.gz
Size 30.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2f0776dd7208fdf857d7665be7ea4ade7f1b5dbac6dbf8002108ef0f5a24771d
BLAKE2b-256 checksum
How to use checksums
357d677b014a967f844881a7497d6a371b8e924c98e47583bcc6d0fd58452185
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release files / flyvis-1.2.0-py3-none-any.whl

Download URL flyvis-1.2.0-py3-none-any.whl
Size 385.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af365b16e870111fcb06782a063f6551b05cce9a105c6eaab9c0bda3b017031f
BLAKE2b-256 checksum
How to use checksums
844bff611ea0a98ee30395b3a716810bf623984b12442d717366170fff6839b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page