Note
Go to the end to download the full example code.
Introducing magnopy¶
Tutorial tasks
Install magnopy
Check that you have version 0.2.1 available
First of all, magnopy shall be installed. For the extended guide you can read magnopy's guide on installation. Type the following command in the free notebook cell, run it and restart the kernel if necessary.
%pip install "magnopy[visual]" --upgrade
Note that you are installing the extended version of magnopy that supports generation of
.png and .html files. Those files will be mentioned in this tutorial.
Note
We recommend to install magnopy with its visual capabilities whenever possible. Magnopy outputs graphics by default if Plotly and matplotlib are installed. Nevertheless, graphical libraries are not included as default dependencies of magnopy in order to offer computational capabilities of magnopy even if those libraries are unaccessible.
Import¶
Magnopy has a well defined set of public functions, that shall be available with code completion. Full list of available methods and objects can always be found in the magnopy's API page.
Import magnopy as any other Python library
import magnopy
Once imported, all magnopy's public objects are available under magnopy..
Hint
It is enough to import magnopy once at the top of the notebook.
Check that installation worked properly by printing magnopy's logo
print(magnopy.logo())
███╗ ███╗ █████╗ ██████╗ ███╗ ██╗ ██████╗ ██████╗ ██╗ ██╗
████╗ ████║ ██╔══██╗ ██╔════╝ ████╗ ██║ ██╔═══██╗ ██╔══██╗ ╚██╗ ██╔╝
██╔████╔██║ ███████║ ██║ ███╗ ██╔██╗ ██║ ██║ ██║ ██████╔╝ ╚████╔╝
██║╚██╔╝██║ ██╔══██║ ██║ ╚██║ ██║╚██╗██║ ██║ ██║ ██╔═══╝ ╚██╔╝
██║ ╚═╝ ██║ ██║ ██║ ╚██████╔╝ ██║ ╚████║ ╚██████╔╝ ██║ ██║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝
▄ ▄
Version: 0.2.1 █▀█▀█
Documentation: magnopy.org █▄█▄█
Release date: 10 September 2025 ███ ▄▄
License: GNU GPLv3 ████ █ █
Copyright (C) 2023-2025 Magnopy Team ████ █
▀▀▀▀▀▀▀▀
Important
Check that you have magnopy version v0.2.1.
Total running time of the script: (0 minutes 0.013 seconds)