安装
- 安装miniconda:bash Miniconda3-py37_4.8.2-Linux-x86_64.sh
- 启动虚拟环境:source /root/.bashrc
- 退出虚拟环境:conda deactivate
- conda镜像配置:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda conda config --set show_channel_urls yes
- 查看安装的包:conda list
- 安装第三方包:conda install jupyter
- 卸载第三方包:conda uninstall jupyter
- 生成配置文件:
- jupyter notebook --generate-config --allow-root
- 打开配置文件:
- vim /root/.jupyter/jupyter_notebook_config.py
- jupyter配置:
#可远程访问 c.NotebookApp.allow_remote_access = True #可通过root用户访问 c.NotebookApp.allow_root = True #提供服务的主机名 c.NotebookApp.ip = 'bigdata111’ #免密码访问 c.NotebookApp.password = ''
- 启动jupyter:jupyter-notebook
- 浏览器访问:xxx.xxx.xxx.xxx:8888/?token=xxxxxxxxxxxxxxxxxxxx
命令
命令模式(esc)
- 上方添加单元格:a
- 下方添加单元格:b
- 删除单元格:dd
- markdown:m
编辑模式
- 运行并在下方添加新单元格:shift+enter
- 运行:ctrl+enter
- 代码补全:tab
- 帮助文档:命令+?(弹窗形式:shift+tab)
参考
Jupyter密码设置
https://blog.csdn.net/weixin_42230550/article/details/82856327
Jupyter默认目录和默认浏览器修改
https://blog.csdn.net/caterfreelyf/article/details/79774311
Jupyter后台运行
https://www.cnblogs.com/laowangxieboke/p/12515244.html
miniconda下载
链接:https://pan.baidu.com/s/1cxr8J4DjXX39HeMzzDvrAA
提取码:8a1u