Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Magnopy's tutorials
Light Logo Dark Logo
  • Master tutorial
    • Magnopy as a python library
      • Introducing magnopy
      • Crystal structure
      • Convention of spin Hamiltonian
      • Spin Hamiltonian
      • Magnetic field
      • Magnetic dipole-dipole interaction
      • Classical Energy
      • (extra) Wulfric
      • Linear Spin Wave theory
    • Magnopy as a black box
      • magnopy-optimize-sd
      • magnopy-lswt
    • Solutions for the exercises
      • Introducing magnopy
      • Crystal structure
      • Convention of spin Hamiltonian
      • Spin Hamiltonian
      • Magnetic field
      • Classical Energy
      • (extra) Wulfric
      • Linear Spin Wave theory
  • TRILMAX summer school
    • Magnopy as a python library
      • Introducing magnopy
      • Crystal structure
      • Convention of spin Hamiltonian
      • Spin Hamiltonian
      • Classical Energy
      • (extra) K-points with wulfric
      • Linear Spin Wave theory
    • Magnopy as a black box
      • Optimization of spin directions
      • Linear Spin Wave theory
    • Preparing files for Vampire
      • Getting files for Vampire
      • Spin-plotting routine (2D)
      • Spin-plotting routine (3D)
Back to top
View this page

Note

Go to the end to download the full example code.

Introducing magnopy¶

Exercises

  1. Install magnopy

  2. Check version of magnopy

import magnopy

Exercise 1¶

%pip install "magnopy[visual]" --upgrade

Exercise 2¶

print(magnopy.__version__)
0.4.3

Total running time of the script: (0 minutes 0.001 seconds)

Download Jupyter notebook: plot_0_introduction.ipynb

Download Python source code: plot_0_introduction.py

Download zipped: plot_0_introduction.zip

Gallery generated by Sphinx-Gallery

Next
Crystal structure
Previous
Solutions for the exercises
Copyright © 2025-2026, Magnopy Team
Made with Sphinx and @pradyunsg's Furo
On this page
  • Introducing magnopy
    • Exercise 1
    • Exercise 2