Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Mathematica Installation on Jupyter

This document shows istallation steps for WolframEngine anf WolframScript for using Mathematica on Jupyter Notebook.

Install Python Languge and Jupyter.

  • For Linux Ubuntu
sudo apt install python3
sudo apt install python3-pip
pip3 install numpy
pip3 install scipy
pip3 install matplotlib
pip3 install getdist
pip3 install jupyter
  • For MacOS
    • Install HomeBrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python3
python3 -m pip install --upgrade pip
pip3 install numpy
pip3 install scipy
pip3 install matplotlib
pip3 install getdist
pip3 install jupyter

Install WolframEngine and WolframScript

Download WolframEngine installer via WolframEngine Download Page for your OS and get your WolframEngine ID license from the page.

  • For Linux Ubuntu

    sudo bash WolframEngine-installer.sh
    

    Activate WolframEngine ID.

    wolframscript --activate
    

    If you have any questions, you can refer to the page below.

    How do I set up the Wolfram Engine on Linux?

    Install WolframScript

    WolframScript Download Page

  • For MacOS

    After downloading the WolframEngine installer, click on the installer to begin the installation. Then, drag and drop to install WolframScript. Finally, activate the WolframEngine ID.

    wolframscript --activate
    

Install Wolfram Langunge For Jupyter

Clone the WolframLanguageForJupyter repository

git clone https://github.com/WolframResearch/WolframLanguageForJupyter.git
cd WolframLanguageForJupyter

Run the following command in your shell to make the Wolfram Language engine available to Jupyter:

./configure-jupyter.wls add

Check Wolfram Languge kernel on Jupyter

jupyter kernelspec list

The out put should include wolframlanguage13 ..\jupyter\kernels\wolframlanguage13.

Run Jupyter Notebook and select Wolfram Language from the drop down menu to start Wolfram kernel on your notebok.

jupyter notebook

For more information: WolframLanguageForJupyter

Visual Studio Code (Optional)

To launch Jupyter Notebook, you can use its built-in GUI; however, this can be inconvenient when frequently switching between the notebook and the terminal. I recommend using Visual Studio Code (VS Code) for primary editing and code execution. This code editor is lightweight, high-performance, supports numerous extensions, and is free to use.

Click on this link and follow the installation instructions specific to your machine's operating system.
Visual Studio Code

For Windows, you can download from Microsoft Store.

For all OS, you need to set up for connecting VS Code with WSL.
Developing in WSL

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors