Skip to content

MatthieuMelennec/pam1-hs2021

Repository files navigation

Repository for ETH HS 2021 PAM I course

If you prefer to run the notebooks locally, it is recommended to create a virtual environment. Please perform subsequent instructions.

Clone the repository

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.

Virtual Python environment

You need to install Python3 first.

Install the pyAcceLEGOrator(any name you like) environment

Option 1: Installation using virtualenv (for python 2 and 3)

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

Option 2: Installation using venv (only for python 3)

$ python3 -m venv your_place/pyAcceLEGOrator.venv
$ source your_place/pyAcceLEGOrator.venv/bin/activate

Install required packages and kernel

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

Run Jupyter

A Jupyter notebook is started by executing

(pyAcceLEGOrator.venv)$ jupyter notebook

If there's kernel error, just choose the "pyAcceLEGOrator.venv" kernel.

Deactivate virtual environment

The virtual environment can be deactivated with

(pyAcceLEGOrator.venv)$ deactivate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published