... | ... | @@ -37,11 +37,15 @@ docker run -ti -u user -w /home/user --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix: |
|
|
|
|
|
## Jupyter notebooks
|
|
|
|
|
|
To run jupyter notebooks from inside the docker image, you need to forward the necessary ports to the container, so that your native browser can connect to it at http://localhost:8888/:
|
|
|
|
|
|
To run jupyter notebooks from inside the docker image, you need to forward the necessary ports to the container, so that your native browser can connect to it at http://localhost:8888/. You need first to start an interactive shell session
|
|
|
```bash
|
|
|
docker run -p 8888:8888 -p 6006:6006 -it -u user -w /home/user tiagopeixoto/graph-tool bash
|
|
|
```
|
|
|
and then start the notebook server
|
|
|
```bash
|
|
|
docker run -p 8888:8888 -p 6006:6006 -u user -w /home/user tiagopeixoto/graph-tool jupyter-notebook --ip 0.0.0.0
|
|
|
[user@c20b92b8c4bf ~]$ jupyter notebook --ip 0.0.0.0
|
|
|
```
|
|
|
**Do not forget to connect to http://localhost:8888/ instead of http://0.0.0.0:8888/, otherwise the connection to the kernel will not work!**
|
|
|
|
|
|
(MacOS and Windows users still need to bind the above ports in the VM, as described [here](https://stackoverflow.com/questions/33636925/how-do-i-start-tensorflow-docker-jupyter-notebook))
|
|
|
|
... | ... | |