谷歌云

CentOS、树莓派4通过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

树莓派4通过docker安装jupyter

docker pull andresvidal/jupyter-armv7l

docker run -d \
--name jupyter \
--restart unless-stopped \
-p 3888:8888 \
-v /mnt/data:/notebooks \
andresvidal/jupyter-armv7l --NotebookApp.token=''

jupyter使用问题

docker里时间不正确

docker cp /etc/localtime f07:/etc/localtime

或者安装的时候配置时间参数

docker run -d -p 9002:8888 --cpu-period=100000 --cpu-quota=20000 --memory-swap=700M --memory=300M --name jupyterr -v /etc/localtime:/etc/localtime jupyter/scipy-notebook start-notebook.sh --NotebookApp.password='sha1:8c4728c73028:eacb6f3d155e669e868261311ff82c2063d3b257'

树莓派docker jupyter

andresvidal/jupyter-armv7l

回复

This is just a placeholder img.