The purpose of this section is to present some global tutorial on how to use Pyleecan. These first tutorials are an introduction to Pyleecan that we recommand to read in order.

How to run the tutorial

Each tutorial is generated from a Jupyter Notebook and can be downloaded on GitHub. To run the tutorials notebook, here is the full procedure:

  • Install the latest version of Anacoda

  • Open an “Anaconda Prompt” and run the command “pip install pyleecan”

  • Install the latest version of FEMM (Windows only)

  • Download the tutorial notebooks on your computer

  • Open the program “Anaconda Navigator” and launch “Jupyter Notebook”


  • In your web browser a tab should open, move to the folder containing the notebooks


  • Double click on the notebook to run

Anaconda include the IDE “Spyder” that enables to read notebook.

Validation simulations are also available in the Tests/Validation folder for inspiration.

Upcoming tutorials

  • How to generate the 3D mesh of a Lamination with GMSH

If you have any question or if you want to request a new tutorial please contact us.


Three public and free webinars have been organized by Green Forge Coop and UNICAS University. The webinar resources are available here:

The current version of pyleecan may be different from the one presented during the webinars. The latest versions of the notebooks are available on Github.