Oct2Py is a Python library that allows the user to seamlessly call M-files and Octave functions from Python.
Oct2Py is a Python library which allows for seamless integration between Python and Octave. It manages the Octave session for you and transfers data between Python and the Octave session using MAT files.
Additionally, it provides OctageMagic which allows for integration of Oct2Py into Jupyter notebooks.
Example
from oct2py import Oct2Py
# Create an Octave session
oc = Oct2Py()
# Call an Octave function
x = oc.zeros(3, 3)
print(x, x.dtype)
# [[ 0. 0. 0.]
# [ 0. 0. 0.]
# [ 0. 0. 0.]] float64