Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Wolfram With Jupyter #76

Open
AllanChain opened this issue Feb 28, 2020 · 0 comments
Open

Install Wolfram With Jupyter #76

AllanChain opened this issue Feb 28, 2020 · 0 comments
Labels
blog: programming @post This is a blog post tag: jupyter tag: raspi |185748696-94767831-83ec-48fe-9bbb-5c7f89d4e9f8.png tag: wolfram |182765581-8e2ba66c-0b59-4cfb-b5fe-7884ea1a44e8.png

Comments

@AllanChain
Copy link
Owner

AllanChain commented Feb 28, 2020

View Post on Blog

This post was originally created at 2020-02-26T17:50:09+08:00


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

Error occurred:

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

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

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

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

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

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

WTF GFW

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

Luckily, success.

@AllanChain AllanChain changed the title Install Wolfram With Jupyter | AC's Blog Install Wolfram With Jupyter Jul 1, 2020
@AllanChain AllanChain added blog: programming tag: wolfram |182765581-8e2ba66c-0b59-4cfb-b5fe-7884ea1a44e8.png tag: raspi |185748696-94767831-83ec-48fe-9bbb-5c7f89d4e9f8.png tag: jupyter @post This is a blog post labels Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog: programming @post This is a blog post tag: jupyter tag: raspi |185748696-94767831-83ec-48fe-9bbb-5c7f89d4e9f8.png tag: wolfram |182765581-8e2ba66c-0b59-4cfb-b5fe-7884ea1a44e8.png
Projects
None yet
Development

No branches or pull requests

1 participant