If you prefer to run the notebooks locally, it is recommended to create a virtual environment. Please perform subsequent instructions.
Go to a prefered place and run
$ git clone https://github.com/potato18z/pam1-hs2021.git
Then go inside the repository, run
$ git pull
to keep updated every week.
You need to install Python3 first.
If you do not have virtualenv
installed, first install it:
$ pip install virtualenv
Then create and activate the environment:
$ virtualenv -p `which python3` your_place/pyAcceLEGOrator.venv
$ source your_place/pyAcceLEGOrator.venv/bin/activate
$ python3 -m venv your_place/pyAcceLEGOrator.venv
$ source your_place/pyAcceLEGOrator.venv/bin/activate
Install packages from requirements.txt
in the activated environment
(pyAcceLEGOrator.venv)$ pip install -r requirements.txt
Add the virtual environment as a python kernel, so that you can import packages inside jupyter
(pyAcceLEGOrator.venv)$ ipython kernel install --name "pyAcceLEGOrator.venv" --user
A Jupyter notebook is started by executing
(pyAcceLEGOrator.venv)$ jupyter notebook
If there's kernel error, just choose the "pyAcceLEGOrator.venv" kernel.
The virtual environment can be deactivated with
(pyAcceLEGOrator.venv)$ deactivate