[PYTHON] For those who want to use Jupyter Notebook as soon as 1 second because they do not know the password

Don't know your password, use Jupyter Notebook now! It is for those who are.

Rather, it is a memorandum for myself.

Own environment

Docker-toolbox on virtualbox on Windows 10

Get Docker image (ignore those who do)

$ docker pull jupyter/datascience-notebook

For the time being, I chose the "jupyter / datascience-notebook" that contains various items, Use Notebook because it's okay! I think that "jupyter / notebook" is fine.

Container startup

docker run -d --name notebook -p 8888:8888 -v /c/Users/[User]/[Work]:/home/jovyan/work -e GRANT_SUDO=yes jupyter/datascience-notebook

For "[User] / [Work]", specify your own user name and working folder. Since it is specified with the "-v" option for data persistence and file sharing, If you don't need it, take this "-v ~ jovyan / work".

Connect to the shell inside the container

$ docker exec -it [Container ID] /bin/bash
jovyab@<Container ID>:~/work$

You can check "[Container ID]" with $ docker container ls. It may be obvious to those who know it, but you only have to type the first one or two letters (unless you are wearing something else).

If you want to know more about the "exec" command etc. Please go to Difference between operation attach and exec in Docker container --Qiita.

Start Jupyter Notebook

jovyab@<Container ID>:~/work$ jupyter notebook list
Currently running servers:
http://localhost:8888/?token=<token> :: /home/jovyan/work

If you copy and paste the above "http: // ~ " into your browser and access it, it should be running.

It should be running now!

Recommended Posts

For those who want to use Jupyter Notebook as soon as 1 second because they do not know the password
For those who want to display images side by side as soon as possible with Python's matplotlib
[For those who want to use TPU] I tried using the Tensorflow Object Detection API 2
For those of you who don't know how to set a password with Jupyter on Docker
Join Azure Using Go ~ For those who want to start and know Azure with Go ~
What to do when the graph does not appear in jupyter (ipython) notebook
Library for "I want to do that" of data science on Jupyter Notebook
What to do if your Jupyter Notebook for beginners asks for a password or token
The first step of machine learning ~ For those who want to implement with python ~
Anxible points for those who want to introduce Ansible
Next to Excel, for the time being, jupyter notebook
For those who want to write Python with vim
For those who want to start machine learning with TensorFlow2
Image inspection machine for those who do not do their best
I want to use a virtual environment with jupyter notebook!
I didn't know how to use the [python] for statement
Reference reference for those who want to code in Rhinoceros / Grasshopper
[Short sentence] easygui for those who want to use a simple GUI with Python very easily
How to use Jupyter Notebook
PyPI registration steps for those who want to make a PyPI debut
Loose articles for those who want to start natural language processing
Python techniques for those who want to get rid of beginners
100 language processing knocks for those who do not understand the meaning of problem sentences Chapter 8 Machine learning