Pre-Req: Use Docker for Mac
- Get the image via
docker pull continuumio/anaconda
- Create a directory for notebooks. Ex:
mkdir ~/notebooks
- Run docker image and use the created directory as a mounted volume via
docker run -d -p 8888:8888 -v ~/notebooks:/opt/notebooks continuumio/anaconda /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir -p /opt/notebooks && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip=0.0.0.0 --port=8888 --no-browser --allow-root"
- Get the docker container id via
docker ps | grep -i "continuumio/anaconda" | awk '{print $1}'
- Wait 60 seconds for the container to install software
- Get the URL and token to access Jupyter via
docker logs <containerId>
NOTE: You may have to keep repeatingdocker logs ...
until you see output like this: