Myokit is a tool for modeling and simulation of cardiac cellular electrophysiology. It's open-source, written in Python, hosted on GitHub and available on PyPi. For the latest documentation, see myokit.readthedocs.io.
More information, including examples and an installation guide, is available on myokit.org. A list of changes introduced in each Myokit release is provided in the Changelog.
Install
For full installation details (on linux, mac, or windows), please see https://myokit.org/install. A shorter installation guide for experienced users is given below.
Update: 2026-10-21. Users of Ubuntu 26 or newer, may run into an "mpi.h not found" error. This is an unfortunate result of changes to sundials and the way it is packaged by Ubuntu (and others https://github.com/myokit/myokit/issues/1153). A fix is planned (https://github.com/myokit/myokit/issues/1215) but this will take considerable time to implement. In the meantime, please use an older version of sundials, or install and compile the newest version manually.
To install Myokit, using PyQt5 for Myokit's GUI components, run:
pip install myokit[pyqt]
to use PySide2 instead, run:
pip install myokit[pyside]
If you're not planning to use the GUI components (for example to run simulations on a server), you can simply install with
pip install myokit
On Linux and Windows, start menu icons can be added by running
python -m myokit icons
To run single-cell simulations, CVODES must be installed (but Windows users can skip this step, as binaries are included in the pip install). In addition, Myokit needs a working C/C++ compiler to be present on the system.
Existing Myokit installations can be upgraded using
pip install --upgrade myokit
Quick-start guide
After installation, to quickly test if Myokit works, type
python -m myokit run example
or simply
myokit run example
To open an IDE window, type
myokit ide
To see what else Myokit can do, type
myokit -h
Contributing to Myokit
Contributing to Myokit is as easy as asking questions or posting issues and feature requests, and we have pledged to make this an inclusive experience.
We are always looking for people to contribute code too! Guidelines to help you do this are provided in CONTRIBUTING.md, but before diving in please open an issue so that we can first discuss what needs to be done.
A high-level plan for Myokit's future is provided in the roadmap.
Citing Myokit
If you use Myokit in your research, please cite it using the information in our CITATION file.
We like to keep track of who's using Myokit for research (based on publications) and teaching (based on peronsal correspondence). If you've used Myokit in teaching, we're always happy to hear about it so please get in touch via the discussion board!
Metadata
Release files for myokit 1.40.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| myokit-1.40.0.tar.gz | 2.1 MB | Without provenance | Details for myokit-1.40.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| myokit-1.40.0-py3-none-any.whl | Python 3 | none | any | Details for myokit-1.40.0-py3-none-any.whl |
Total release size: 4.3 MB
Release files / myokit-1.40.0.tar.gz
| Download URL | myokit-1.40.0.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85d08c8108fd9d05093d732c8184569e900a178a721ecc880a190f29e84ded60
|
|
BLAKE2b-256 checksum How to use checksums |
cbef9502ea084408c9acd963fa70a54b5122969631c636867e0776424efeaa72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / myokit-1.40.0-py3-none-any.whl
| Download URL | myokit-1.40.0-py3-none-any.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53683a5bb676ae29d545cffbcc2c80e66ed51c2279f088df2457bf2ecd933360
|
|
BLAKE2b-256 checksum How to use checksums |
a7230982ab86967dd817881b19d68103036c738eee622ff2260156287f552237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for myokit 1.40.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.