Install Wolfram With Jupyter

2020-02-26
 

From https://github.com/wjxway/PKU-shuakeji, I find that I can install free Wolfram Mathematica on Raspberry Pi.

Go ahead and apt install wolfram-engine wolframscript

Get Wolfram Language For Jupyter Guide here: https://github.com/WolframResearch/WolframLanguageForJupyter/

WTF PATH #

If try the first approach:

./configure-jupyter.wls add
bash

Error occurred:

configure-jupyter.wls: Jupyter installation on Environment["PATH"] not found.
text

But jupyter is in PATH indeed:

$ which jupyter
/usr/local/bin/jupyter
$ echo $PATH
/home/pi/.local/bin:/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
bash

However in wolframscript

$ echo 'Print[Environment["PATH"]]' | wolframscript
Wolfram Language 12.0.1 Engine for Linux ARM (32-bit)
Copyright 1988-2019 Wolfram Research, Inc.

In[1]:= /opt/Wolfram/WolframEngine/12.0/Executables:/opt/Wolfram/WolframEngine/12.0/S\

>   ystemFiles/Graphics/Binaries/Linux-ARM:/home/pi/.local/bin:/usr/bin:/bin
bash

Well, PATH is different...

As said in ./configure-jupyter.wls help, you can specify jupyter path by

configure-jupyter.wls add "/absolute/path/to/Wolfram-Engine-binary--not-wolframscript" "path/to/Jupyter-binary"
        adds the provided absolute Wolfram Engine binary path to the provided Jupyter binary path
text

If you try the second, you can avoid providing path to Wolfram Engine binary:

ConfigureJupyter["Add", "JupyterInstallation" -> "..."]
mathematica

WTF GFW #

However, it seems to update the paclet from server, which is very slow here...

Luckily, success.

Leave your comments and reactions on GitHub