谷歌云

CentOS通过docker一键安装jupyter notebook

首先在centos上安装docker并运行。在ipython中获取sha1

from notebook.auth import passwd
passwd()

将获取的sha1替换下面的启动命令

docker run -d -p 9008:8888 jupyter/scipy-notebook start-notebook.sh --NotebookApp.password='sha1:8c4728c73028:eacb6f3d155e669e868261311ff82c2063d3b257'

打开IP:9008即可

密码admin

安装Python库

import sys
!{sys.executable} -m pip install numpy

回复

This is just a placeholder img.