在linux(Red Hat)_安装jupyter(miniconda下)

1.先安装minicondapython

image.png


2.配置conda的镜像为清华的仓库的镜像linux

image.png

#   conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/vim

#   conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/浏览器

#   conda config --set show_channel_urls yeside


3.在base python环境安装 jupyterurl

image.png


4.配置jupyter
spa


-进到安装目录ip

image.png


-生成配置文件部署

#   jupyter notebook --generate-config虚拟机

image.png



-配置密码

#   ipython

#   from notebook.auth import passwd

#   passwd()

image.png


-编辑配置文件

#  vim /root/.jupyter/jupyter_notebook_config.py

修改1:提供服务的IP

修改2:提供服务的端口

修改3:上面生成的秘钥

修改4:启动后默认的根目录(.ipynb文件放哪里)

修改5:启动后默认不打开浏览器

image.png

image.png

image.png

image.png

image.png



-启动下看看(由于安装在root用户下因此带--allow-root)

#    jupyter notebook  --allow-root


-window下的浏览器登陆(jupyter部署在虚拟机里的linux)

image.png

相关文章
相关标签/搜索