Quick Start - For Advanced Users#

If you want to use Python environments and the command line for installation, please follow these instructions after installing Anaconda.

Not much explanation is given as if you are advanced enough to want to do this, you should be comfortable in following the steps.

On Windows#

Run the Anaconda Prompt as an Administrator.

On Mac and Linux#

Open a terminal window.

Go to eg-247-textbook folder#

Create and launch EG-247 Textbook environment:

conda update conda
conda create -n eg-247-textbook python=3.9 anaconda
conda activate eg-247-textbook # source activate eg-247 on mac or unix

Test packages:

Download soton-test-python-installation.py.

Run:

python soton-test-python-installation.py

Install [Rise](https://damianavila.github.io/RISE/set index.html) for active slides:

conda install rise

Install MATLAB kernel#

This assumes windows.

First install the Python-MATLAB bridge.

set MATLAB_HOME="C:\Program Files\MATLAB\R2022b"
cd %MATLAB_HOME%\extern\engines\python
python setup.py install

NowMATLAB_KERNEL

pip install matlab_kernel

Now when you launch a jupyter notebook

jupyter notebook content\introduction\index.ipynb

you should have a MATLAB kernel as well as a Python 3 kernel and the Rise slide show feature should be available.

Export environment settings#

Export settings:

conda env export --file environment.yml

To recreate the EG-247 Textbook environment on another machine with Anaconda installed, you should be able to copy the environment.yml file and execute:

conda env create --file environment.yml

Exit EG-247 Environment#

conda deactivate # source deactivate on mac or linux