1、安装
注意: 安装之前需要安装python环境
1.1 cmd命令安装
1、 win + r 打开cmd命令
2、 输入pip install jupyter
3、 第二步安装成功之后输入jupyer notebook启动
4、 启动之后在浏览器打开启动的https地址就进入web界面
1.2 anaconda安装
anaconda操作命令
1、anaconda安装成功 win + q 搜索anaconda 选择anaconda prompt启动
2、anaconda 常用命令
创建虚拟环境
conda create --name you_env_name python=3.10
删除虚拟环境
conda remove -n you_env_name --all
激活
conda activate you_env_name
退出
conda deactivate
查看所有envs
conda env list
清理缓存
conda clean -p
安装 jupyter notebook
1、 打开Anaconda界面选择安装jupyter 或者命令行安装 conda install jupyter
2、 创建虚拟环境
conda create --name env_name python=3.10
3、 配置ipykernel
python -m ipykernel install --user --name=虚拟环境名称
4、 启动jupyter
jupyter notebook
5、 启动里边的https地址进入web界面
1.3 jupyter notebook配置智能提示
1、刚进去页面
2、依次执行下边命令
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable
3、 重新启动jupyter notebook,提示如下:
4、查看修改文件地址
C:\Users\计算机用户名\.jupyter 里边jupyter_notebook_config.py文件打开
查找NotebookApp.notebook_dir = your/path