In rare cases, we ask people who haven't built a Python environment to "Open Jupyter!".
At that time
It is very difficult to ask for such things. (Because sometimes it is an unintended error)
It is assumed that Docker is included, but if Docker is included, it will start up with one command
Install Docker on macOS with Homebrew and Hello world
Docker image is https://hub.docker.com/r/jupyter/datascience-notebook/ I will borrow from. Since most of the necessary libraries such as pandas are included, you can analyze and draw without stress, although it consumes a lot of space.
Below Usage.
docker run -d --name notebook -v $PWD:/home/jovyan -p 9999:8888 jupyter/datascience-notebook
docker logs notebook 2>&1 | grep 'http://127.0.0.1:8888/?token=' 2>&1 | sed -e "s/^.*token=\(.*\).*$/\1/" 2>&1 | sed -n -e \$p
docker stop notebook && docker rm notebook
docker system prune
When creating an environment using Docker, if you make various trials and errors, garbage will accumulate and you may rarely eat about 50GB.
It's okay if you do the basic docker system prune
regularly, but also refer to the articles around here!
Docker batch delete command summary
Recommended Posts