Skip to main content

run-octave

License: MIT PyPI version

A package for running Octave functions and calling Scripts in the Python interpreter!

Note

Requirements

  • python 3
  • scipy

Installation

Simply install run-octave package from PyPI

pip install run-octave

Examples

from run_octave import RunOctave
import numpy as np

# Create the RunOctave object and explicitly add the path to octave-gui.exe
#octave = RunOctave(octave_path='C:/Program Files/GNU Octave/Octave-6.2.0/mingw64/bin/octave-gui.exe')
octave = RunOctave(octave_path='C:/Octave/Octave-5.2.0/mingw64/bin/octave-gui.exe')

A = np.array([[ 2, 0, 1],
              [-1, 1, 0],
              [-1, 1, 0],
              [-3, 3, 0]])

# Start Testing
m, n = octave.run(nargout=2, target='size', args=(A,))
print(m, n)

N = octave.run(nargout=1, target='vecnorm', args=(A, 2, 2))
print(N)

# Inserting expressions directly
X = octave.run(nargout=1, target='ones(4, 3) * 255;')
print(X)

Metadata

Release files for run-octave 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for run-octave 1.0.3
File Size Uploaded
run_octave-1.0.3.tar.gz 2.9 kB Details

Release files / run_octave-1.0.3.tar.gz

Download URL run_octave-1.0.3.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f276eb447def51a3a729e95198de4ba9cb9e0c7335ba0c3f224b66cc4cf95c68
BLAKE2b-256 checksum
How to use checksums
2f66b36ba09292507e0612da3f8fb2883105e8538b657dd1eb125cd98456cb6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page