Oct2py

Latest version: v5.8.0

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

4.1.0

- Add a backend property to specify the graphics toolkit

4.0.5

- Fixed a thread safety bug when writing matlab files.

4.0.0

Features

- Added an `feval` method, which can be used to call Octave functions
without creating a dynamic function. The function also supports
calling a function by path.
- The new `feval` method and the dynamic functions both now support a
`store_as` argument, which saves the result of the call to the
Octave workspace rather than returning it.
- Added `get_pointer` method that can be used to retrieve a pointer to
a value in the Octave namespace, including Octave functions.
Pointers can be passed to `feval` or dynamic functions as function
arguments. A pointer passed as a nested value will be passed by
value instead.
- Added an Oct2Py `Cell` ndarray subclass used for Octave cell arrays.
- Added an Oct2PY `StructArray` numpy `recarray` subclass used for
Octave structure arrays.
- Added a `stream_handler` argument to `eval` and the new `feval`
method that can be used to capture streaming output using a simple
callback.

Breaking Changes

- Removed inferred `nout` for Octave function calls; it must be
explicitly given if not `1`. The old behavior was too surprising and
relied on internal logic of the CPython interpreter.
- Any code that received Cell or Struct Array values will need to be
updated.
- Numpy booleans are now equivalent to Octave literals. They were
previously handled as uint8 when sending to Octave.
- Deprecated the use of keyword arguments to Octave function calls,
use standard Octave calling conventions.
- Deprecated the `log` and \[return_both\]{.title-ref} keyword arguments
to `eval()`. See docs on `Oct2Py.eval()` for more information.
- Oct2Py will no longer create dynamic functions for values that are
not Octave functions - use \[get_pointer\]{.title-ref} or `pull`
instead.

3.9.0

- Added support for Python 3.6 and Octave \[input()\]{.title-ref}
functions.

3.8.0

- Added support for Octave class objects and clean up repr() and
help() for dynamic Octave methods, (PR 104)

3.7.0

- Fixed error that caused the session to crash on Windows when Octave
encountered a syntax error.
- Added separate width and height specifiers to the
\[%%octave\]{.title-ref} magic so the image can be constrained in one
dimension while maintaining its aspect ratio.
- Added an \[extract_figures\]{.title-ref} method to the
\[Oct2Py\]{.title-ref} class which gives back a list of IPython Image
or SVG objects for the created figures.
- Completely rewrote the internal communication to Octave on top of
the \[octave_kernel\]{.title-ref}, which enabled the Windows crash
fix.
- Removed the internal \[\_make_figs.m\]{.title-ref} file, since that
functionality is now in \[octave_kernel\]{.title-ref}.

Page 4 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.