How blink1073/oct2py works
Oct2Py bridges Python code to GNU Octave: users invoke Octave functions or scripts through a managed session, exchange values, and receive converted results. The central session layer coordinates dynamic function dispatch, settings, and MAT-file-based exchange. The README also documents notebook magics, plotting, broad datatype support, independent sessions, and diagnostics. The graph reflects those documented capabilities; some internal call details are unsampled, so uncertain links are omitted.
Main entry points: core.py Session manager · __init__.py Public API · octavemagic.py OctaveMagic · check.py System check
Components 14
Python interface
- Public API
oct2py/__init__.py - Version metadata
oct2py/_version.py
Session runtime
- Session manager
oct2py/core.py - Session settings
oct2py/settings.py - Dynamic dispatch
oct2py/dynamic.py - Runtime utilities
oct2py/utils.py
Data exchange
- MAT exchange
oct2py/io.py
Notebook and diagnostics
- OctaveMagic
oct2py/ipython/octavemagic.py - System check
oct2py/check.py - API demo
oct2py/demo.py - Speed check
oct2py/speed_check.py - Thread check
oct2py/thread_check.py
Other components
- Python user
- GNU Octave
Connections 19
- Python user → Public API: uses
README.md - Public API → Session manager: creates session
oct2py/__init__.py - Public API → Version metadata: exports version
oct2py/__init__.py - Session manager → Session settings: configures with
oct2py/core.py - Session manager → Dynamic dispatch: uses dispatch
oct2py/core.py - Session manager → Runtime utilities: uses utilities
oct2py/core.py - Session manager → MAT exchange: exchanges values
README.md - Session manager → GNU Octave: runs commands
README.md - GNU Octave → MAT exchange: reads and writes
README.md - OctaveMagic → Public API: uses sessions
oct2py/ipython/octavemagic.py - OctaveMagic → Session manager: pushes and evaluates
oct2py/ipython/octavemagic.py - Python user → OctaveMagic: loads extension
oct2py/ipython/octavemagic.py - Python user → System check: runs check
oct2py/check.py - System check → Session manager: tests connection
oct2py/check.py - Python user → API demo: runs demo
oct2py/demo.py - API demo → Public API: uses API
oct2py/demo.py - Python user → Speed check: runs benchmark
oct2py/speed_check.py - Speed check → Session manager: tests transfers
oct2py/speed_check.py - Python user → Thread check: runs check