Files
aoe2-data/jupyter/README.md
2023-03-30 15:36:02 +02:00

35 lines
956 B
Markdown

# aoe2-data
## Jupyter notebook in docker:
There are different images to choose from: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html
docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-03-27
Works only on WSL because of mounted host volume
run detached:
```bash
docker run --name jupyter -d --rm \
-p 8888:8888 \
--user root \
-e NB_USER="marcelo" \
-e CHOWN_HOME=yes \
-w "/home/marcelo" \
-v /mnt/c/Users/dechert/git/aoe2-data/jupyter-data:/home/marcelo/src \
jupyter/scipy-notebook:2023-03-27
```
`docker logs -f jupyter` to see the url with secret
configuration:
https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html
How to install new packages:
https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#conda-environments
run inside container:
pip install liquipediapy
docker exec -it jupyter bash
docker cp jupyter:/home/marcelo/AoE-data.ipynb .