octave_kernel
octave_kernel copied to clipboard
Octave_kernel on Juypyter MacOs
Greetings, I'm attempting to get Octave up and running on Jupyter Notebook. I see the kernel in the drop down menu but then I have an error message:
OSError: Octave Executable not found, please add to path or set"OCTAVE_EXECUTABLE" environment variable....
I've tried all the suggestions and I usually find a solution before relying on help but this time its been about 5 hours and still in trouble. Can you please walk me through this because I'm having technical difficulties.
Thank you in advance. Tarique
Hi @bitMaestro, if you start a notebook with python kernel and type the following, what is the output?
!which octave; echo $OCTAVE_EXECUTABLE
Hi, I cannot run,
!which octave; echo $OCTAVE_EXECUTABLE
directly from within Jupyter notebook. I receive an error message, pease see error message from terminal.
OSError: Octave Executable not found, please add to path or set"OCTAVE_EXECUTABLE" environment variable
[W 12:35:37.104 NotebookApp] KernelRestarter: restart failed
[W 12:35:37.105 NotebookApp] Kernel 20c82878-d981-4d96-98f1-672feae0d4e6 died, removing from map.
ERROR:root:kernel 20c82878-d981-4d96-98f1-672feae0d4e6 restarted failed!
[W 12:35:37.117 NotebookApp] Kernel deleted before session
[W 12:35:37.118 NotebookApp] 410 DELETE /api/sessions/a4a1b66c-fd48-4cd3-9f08-f34c11a00863 (::1) 3.24ms referer= http://localhost:8888/notebooks/Untitled.ipynb
However running the code in the terminal give me this:
$ !which octave; echo $OCTAVE_EXECUTABLE
which python octave; echo $OCTAVE_EXECUTABLE octave; echo $OCTAVE_EXECUTABLE
/Users/tarique/anaconda3/bin/python
/Users/tarique/anaconda3/lib/python3.6/site-packages/octave_kernel octave
/Users/tarique/anaconda3/lib/python3.6/site-packages/octave_kernel
Thanks in advance for your help. [image: photo] Tarique Hasheem
510-299-2680
http://www.linkedin.com/in/tariqueh Create your own email signature https://wisestamp.com/email-install?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own
On Thu, Feb 1, 2018 at 9:54 AM, Steven Silvester [email protected] wrote:
Hi @bitMaestro https://github.com/bitmaestro, if you start a notebook with python kernel and type the following, what is the output?
!which octave; echo $OCTAVE_EXECUTABLE
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Calysto/octave_kernel/issues/116#issuecomment-362348849, or mute the thread https://github.com/notifications/unsubscribe-auth/AYguhS4_LBsBNO4XCAj2yp16qxusiMXKks5tQfpzgaJpZM4RxtFe .
Are you able to start a notebook with a Python kernel? The above command is intended for a Python kernel.
Yes. If I select Python from the drop down inside of Jupyter notebook Python will run as it should.
On Thu, Feb 1, 2018 at 1:20 PM, Steven Silvester [email protected] wrote:
Are you able to start a notebook with a Python kernel? The above command is intended for a Python kernel.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Calysto/octave_kernel/issues/116#issuecomment-362405178, or mute the thread https://github.com/notifications/unsubscribe-auth/AYguhTVgDCmeIVyan-LnlVe48Px1LLthks5tQiqFgaJpZM4RxtFe .
After starting the Python notebook, what is the output of running a cell with the following? !which octave; echo $OCTAVE_EXECUTABLE
?
I have same problem
!which octave; echo $OCTAVE_EXECUTABLE?
The output of running a cell is Object OCTAVE_EXECUTABLE
not found.
@ksk8863 Did you set such a variable in the shell before running Jupyter? You need to do something like:
export OCTAVE_EXECUTABLE=$(which octave)
hello, I am using macos, my octave installation is up and running but I cannot use jupyter notebook. When I attempt to create an octave notebook I am getting error below OSError: Octave Executable not found, please add to path or set"OCTAVE_EXECUTABLE" environment variable
I set an environment variable as export PATH="/Applications/Octave.app/Contents/Resources/usr/Cellar/octave-octave-app_4.4.0/4.4.0/bin/octave-cli:$PATH"
into the bash_profile. However, it seems not working.
Could you advise me how to solve this issue?
Don't put the executable in the path (remove octave-cli)
I tried but getting same error. Should I use different command to set an environment variable?
@asavasci, are you able to run octave-cli
from a terminal after setting up your PATH as above?
When I installed octave 4.4 using the app bundle at https://wiki.octave.org/Octave_for_macOS, it didn't come with an octave-cli only an octave command.
I just made a link with that name and put in my home bin directory which is in my path.
ln -s /usr/local/bin/octave ~/bin/octave-cli