[英]How do you run Octave in Jupyter?
I want to run Octave in JupyterLab on a M1 Macbook.我想在 M1 Macbook 上的 JupyterLab 中运行 Octave。 I have installed JupyterLab using pip
and Octave-6.3.0-beta1.dmg
file as per the prerequisites.我已经按照先决条件使用pip
和Octave-6.3.0-beta1.dmg
文件安装了 JupyterLab。
I have also installed Octave kernel using pip install octave_kernel --user
.我还使用pip install octave_kernel --user
安装了 Octave 内核。
Now I am somewhat stuck.现在我有点卡住了。 This documentation says,该文档说,
"We require the Octave
executable to run the kernel. Add that executable's directory to the PATH
environment variable or use the OCTAVE_EXECUTABLE
to point to the executable itself." “我们需要Octave
可执行文件来运行内核。将该可执行文件的目录添加到PATH
环境变量或使用OCTAVE_EXECUTABLE
指向可执行文件本身。”
Can someone help me with this?有人可以帮我弄这个吗? What am I supposed to type in the terminal?我应该在终端输入什么?
PATH
is an "environment variable" . PATH
是一个“环境变量” 。 It basically makes anything that runs in your computer know few software and their location.它基本上使您计算机中运行的任何东西都知道很少的软件及其位置。 That way, when you do eg python my_code.py
it knows what python
is.这样,当您执行例如python my_code.py
时,它就知道python
是什么。
Read the link above too to learn how to add stuff to PATH
, in your case, the location of Octave.也请阅读上面的链接以了解如何将内容添加到PATH
,在您的情况下,是 Octave 的位置。 The location should be something like C:\Octave\Octave-5.1.0.0\mingw64\bin
, where the folder contains octave.bat
, for a windows machine.对于 Windows 机器,该位置应该类似于C:\Octave\Octave-5.1.0.0\mingw64\bin
,其中文件夹包含octave.bat
。 Just find wherever Octave is in you MAC.只需找到您 MAC 中 Octave 所在的位置即可。
There is another similar question about this: How to add Octave to PATH environment variable in Mac Sierra?还有另一个类似的问题: How to add Octave to PATH environment variable in Mac Sierra?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.