I am receiving this error when trying to run my .m script in an Octave Jupyter Notebook on Ubuntu 16.04:
warning: Functions for spreadsheet style I/O (.xls .xlsx .sxc .ods .dbf .wk1 etc.) are provided in the io package. See http://octave.sf.net/io/.
Please read http://www.octave.org/missing.html to learn how you can contribute missing functionality. warning: called from unimplemented at line 524 column 5 calc_slope_per_year at line 7 column 8 error: 'xlsread' undefined near line 7 column 10 error: called from calc_slope_per_year at line 7 column 8
I originally didn't have the package io installed, so I installed it, but still receive the same error. Verified here:
Package Name | Version | Installation directory --------------+---------+----------------------- io | 2.4.10 | /home/m/octave/io-2.4.10
Here is my kernelspec list:
$ jupyter kernelspec list
Available kernels:
python3 /home/m/.local/share/jupyter/kernels/python3
ir /home/m/anaconda2/share/jupyter/kernels/ir
octave /home/m/anaconda2/share/jupyter/kernels/octave
python2 /home/m/anaconda2/share/jupyter/kernels/python2
I have also tried to use oct2py in a Python 3 Jupyter Notebook:
from oct2py import octave
but receive the same error
Oct2PyError: Octave evaluation error: error: 'xlsread' undefined near line 7 column 10 error: called from: calc_slope_per_year at line 7, column 8
Interestingly, when I ran my .m script in the Octive GUI without io package installed yet, it worked fine. Any Suggestions?
pkg load io
before trying to use xlsread? - Andypkg load io
- Andy