jupyter+jupyterlab安装指南
0 jupyter rabin 100 阅读 • 9个月前

目前共有三种方法安装jupyter:

1、pip:

#依赖

apt-get install python python3 python-dev python3-dev libxml2 libxml2-dev libxslt-dev(centos换成yum,dev换成devel)

curl -O http://www.dever.cc/file/zeromq/zeromq-4.2.1.tar.gz

tar -zxvf zeromq-4.2.1.tar.gz

cd zeromq-4.2.1

./configure --prefix=/usr/local/zeromq

make && make install

cd ..

rm -rf zeromq*

pip2 install pyzmq --install-option="--zmq=/usr/local/zeromq"

pip3 install pyzmq --install-option="--zmq=/usr/local/zeromq"

# 安装jupyter及内核支持

pip2 install jupyter

pip3 install -U ipykernel

python3 -m ipykernel install --user

python2 -m ipykernel install --user

# 安装jupyterlab使用版

pip2 install jupyterlab

#装插件

pip2 install jupyter_contrib_nbextensions

pip2 install jupyter_nbextensions_configurator

pip2 install jupyter_dashboards

jupyter contrib nbextension install --user

jupyter nbextensions_configurator enable --user

jupyter dashboards quick-setup --sys-prefix

#启动

jupyter notebook --allow-root --no-browser --notebook-dir=/src --port=8888 --ip=0.0.0.0

jupyter lab --allow-root --no-browser --notebook-dir=/src --port=8889 --ip=0.0.0.0

2、conda:https://www.anaconda.com/download/

3、dm:dm run py-node

访问你的浏览器:ip:10001、ip:10002

py-note logs可以查看token

dmlearn install seaborn 可以安装你需要的库

评论:0