I install oct2py in a virtual environment and then run Notebook there. Now I can select Octave Kernel. But then I get error messages saying that Octave does not exist and that I need to consult README.
I don’t know where to find this README, and don’t understand why Notebook allows me to select Octave Kernel and it does not exist.
What is the correct way to install and run Octave?
In general, “the README” for a python package is its PyPI page: in this case, also the top hit on a web search leads to https://pypi.org/project/oct2py.
That has a further link to the full documentation, which has a section on how to install GNU Octave.
The top recommendation there, and one I echo, would be to install octave (and oct2py , notebook and the rest) from conda-forge with a file that manages all of these together:
... the classic approach with environment.yml
- Start with miniforge
- managing your environment with an
environment.yml:
# environment.yml
channels: [conda-forge]
dependencies:
- python 3.14.*
- octave 10.*
- notebook 7.*
- oct2py 4.*
... a newer approach with pixi.toml
Another useful tool with a different workflow is pixi.
It inverts “i use this environment when i work on this project” to “this project has environments”, described in a pixi.toml file.
# pixi.toml
[workspace]
channels = ["linux-64", "win-64", "osx-arm64"] # covers 80% of users
[dependencies]
python = "3.14.*"
octave = "10.*"
notebook = "7.*"
oct2py = "4.*"
Then run pixi run notebook.
Thanks for the answer so I now get to README.
But it doesn’t really help solve the problem to run the Octave kernel in Notebook.
I am already using UV to establish and control the virtual environments and do not want to start a conflict by using Conda. Surely it should work under UV.
PIP list in UV shows oct2py and octave-kernel are present.
uv can’t install octave.