Allow users to use Python objects in Octave in order to take advantage of the rich resources of Python.
A Python interface is added to Octave, and Python resources can be used directly in Octave. Octave has original Python functions, but this method has many limitations. As a comparison Octave has a much better Java interface, you can use Java classes directly. And can be well integrated with Octave. The current project directly adds a Python interface to Octave, which is similar to the Java interface and uses similar methods. More friendly than the original Python functions.
For example:
matplot=pythonImport("matplotlib.pyplot")
x1=0:0.1:10
x2=sin(x1)
matplot.plot(x1,x2)
matplot.show()
This project has not been completed, only the main functions have been implemented. So please do not use it in a production environment.
If you encounter a problem, you can tell me, or you can try to fix it by yourself. welcome to modify and submit the code.
octave source code download from https://hg.savannah.gnu.org/hgweb/octave/archive/tip.zip
Imitate the Java interface to implement the Python interface
Like compiling Octave, the current version is based on the newer Octave version.
The version number is displayed as: GNU Octave, version 7.0.0 Copyright (C) 2020 The Octave Project Develo
- ./bootstrap
- ./configure
- make
- make install
- You can run the graphical interface directly after installation
- You can also run ./run-octave after compiling
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request