The recommended mode of working with the notebooks is to use the VS Code Dev Containers extension with the Remote - SSH extension to connect to a container running on a CHAI server with access to /nas
.
- Click on the >< button in the bottom left of the screen.
- Choose
Connect to Host...
- Connect to
vae.ist.berkeley.edu
or another host. - When the new window opens click
><
again and chooseOpen Folder in Container...
- Open
./KataGoVisualizer/notebooks
- Make sure the recommended extensions are installed in the container (Python, Jupyter)
- Change the kernel to
venv
(/opt/venv/bin/python
)
To work with the notebooks without VS Code:
- Run
docker-compose -f notebooks/docker-compose.yml up
. This should print out a URL likehttp://127.0.0.1:8888/?token=<...>
. - Run
docker ps
to find the port that it bound to on the host, call it PORT ssh
to the host to forward that port to port 8888 on your local machine:ssh -L 8888:localhost:PORT
.- Navigate to that URL output at step 1 on your local computer.