Enter the interactive environment docker: docker Exec -it ***** bash
Installation jupyter:
- Install python dev package:
apt-get install python-dev
- Installation jupyter:
pip install jupyter [若pip没安装好,需要安装sudo apt install python3-pip]
Profiles:
生成jupyter配置文件:
jupyter notebook --generate-config
使用ipython生成密码
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:******'
- Profile /root/.jupyter/jupyter_notebook_config.py to modify the following parameters
c.NotebookApp.ip = '*' # bind all addresses, ie all IP addresses can access
c.NotebookApp.password = U '
' sha1:******
whether to automatically open in your browser start after c.NotebookApp.open_browser = False #
c. NotebookApp.port = 8100 # specify an access port 8100, the default 8888
c.NotebookApp.allow_remote = True # remote access is set to True
start up:
jupyter notebook --allow-root
remote access:
- View docker IP, need to install apt install net-tools, and then enter the command ifconfig -a.
IP address is the docker find inet address. Such as: inet 153.16.0.1
- Remote Access: http://153.16.0.1:8100 can be. 8100 is a modified configuration file to enable the interface if the password, a password that is later token =. /