magpylib

Community

Python package for computation of magnetic fields of magnets, currents and moments.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::magpylib

Try This Package Beta

Usage Tracking

6.3.0
6.1.0
6.0.1
6.0.0
5.2.3
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

Magpylib computes static magnetic fields of magnets, currents and other sources from analytical expressions, in vectorized form, and computes the forces and torques between them. Sources and sensors can be positioned, moved and rotated along paths, grouped into collections, and displayed with Matplotlib, Plotly or PyVista.

About

Summary

Python package for computation of magnetic fields of magnets, currents and moments.

Last Updated

Nov 8, 2026 at 05:22

License

BSD-3-Clause

Supported Platforms

noarch