Anaconda下安装配置Jupyter
1、安装
conda activate my_env #激活虚拟环境
pip install jupyter #安装
jupyter notebook --generate-config #生成配置文件
提示配置文件的位置:
Writing default config to: /root/.jupyter/jupyter_notebook_config.py
检查版本:
# jupyter --version
Selected Jupyter core packages...
IPython : 8.12.3
ipykernel : 6.29.5
ipywidgets : 8.1.3
jupyter_client : 8.6.2
jupyter_core : 5.7.2
jupyter_server : 2.14.2
jupyterlab : 4.2.4
nbclient : 0.10.0
nbconvert : 7.16.4
nbformat : 5.10.4
notebook : 7.2.1
qtconsole : 5.5.2
traitlets : 5.14.3
2、配置
(1)修改配置参数
打开jupyter 的配置文件 ,修改以下配置内容:
c.ServerApp.notebook_dir = ‘/root/jupytercode’# 配置程序代码路