Note
Go to the end to download the full example code.
Introducing magnopy¶
Exercises
Install magnopy
Check version of magnopy
Note
We recommend to install magnopy with its visual capabilities whenever possible (magnopy[visual]). Magnopy will output graphics by default if Plotly and matplotlib are installed. Nevertheless, graphical libraries are not included as default dependencies in order to offer computational capabilities of magnopy even if those libraries are not available.
Import¶
Magnopy has a well defined set of public functions, that shall be available with code completion. One can always find full list of available methods and objects on magnopy's API page.
import magnopy
Now all magnopy's public objects are available under magnopy..
To check that installation worked properly try print magnopy's logo
print(magnopy.logo())
███╗ ███╗ █████╗ ██████╗ ███╗ ██╗ ██████╗ ██████╗ ██╗ ██╗
████╗ ████║ ██╔══██╗ ██╔════╝ ████╗ ██║ ██╔═══██╗ ██╔══██╗ ╚██╗ ██╔╝
██╔████╔██║ ███████║ ██║ ███╗ ██╔██╗ ██║ ██║ ██║ ██████╔╝ ╚████╔╝
██║╚██╔╝██║ ██╔══██║ ██║ ╚██║ ██║╚██╗██║ ██║ ██║ ██╔═══╝ ╚██╔╝
██║ ╚═╝ ██║ ██║ ██║ ╚██████╔╝ ██║ ╚████║ ╚██████╔╝ ██║ ██║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝
▄ ▄
Version: 0.4.3 █▀█▀█
Documentation: magnopy.org █▄█▄█
Release date: 9 January 2026 ███ ▄▄
License: GNU GPLv3 ████ █ █
Copyright (C) 2023-2026 Magnopy Team ████ █
▀▀▀▀▀▀▀▀
Version¶
Version of magnopy can be seen in the summary printed by the magnopy.logo()
function. To access the version alone you can use
print(magnopy.__version__)
0.4.3
Task solutions¶
task 1¶
%pip install "magnopy[visual]" --upgrade
task 2¶
print(magnopy.__version__)
0.4.3
Total running time of the script: (0 minutes 0.003 seconds)