REK-proj-2/README.md
2021-06-28 20:18:14 +02:00

1.1 KiB

Recommender Systems class - Project 2

Preparing your system

  1. Install Docker.

  2. Fork this repository to your GitHub account.

  3. Run Jupyter docker image:

docker run \
	-d -p 8888:8888 \
	-v DIRECTORY:/home/jovyan/REK \
	--name REK \
	jupyter/minimal-notebook

Remember to change DIRECTORY to directory where all files can be found. You can change it to $(pwd) if your current directory is proper one.

  1. Get loging link with following command:
docker logs REK 2>&1 | grep -o 'http://127.0.0.1:8888.*' | tail -n1

Example output:
http://127.0.0.1:8888/?token=2bb816a4bc36a4bdbf64e0c9a89f336ae5404a01d15e442c
  1. Prepare conda environment:
docker exec REK bash -c "
conda env create --name rs-class-env -f /home/jovyan/REK/environment.yml;
python -m ipykernel install --user --name=rs-class-env"
  1. You can start/stop container whenever you want:
docker stop REK
docker start REK

If you want to start from scratch, you can remove container:

docker stop REK
docker rm REK

Now you are ready to work!