- 一、安装
- 二、启动调用
- 三、疑难报错
- 1、jupyter notebook 中报错 ModuleNotFoundError: No module named ‘cv2‘
- 2、Jupyter notebook 中打开指定文件夹
- 四、Jupyter notebook 常见命令
一、安装
通过anaconda3进入所选环境,安装jupyter
1、在anaconda里直接Launch
2、找到 jupyter notebook 启动快捷方式
3、终端命令(或cmd)里启动 【强烈推荐!!!】
- 打开终端命令
- 激活 python环境(我这里是tf2)
- cd 到指定目录
- 输入 jupyter notebook 打开网页
解决 Kernel 问题
- Anaconda终端里使用下面命令查看当前所有可用的Kernel :
jupyter kernelspec list
- 安装ipykernel 继续输入
conda install ipykernel
- 手动添加 kernel继续输入
python -m ipykernel install --name tf2 --display-name ‘‘tf2’’
- 可以下面命令删除 Kernel
jupyter kernelspec remove stm32
详细解决方案:
https://blog.csdn.net/qq_30722795/article/details/108022484
补充:用终端命令启动不会出现kernel的问题
- 用终端进入指定文件夹输入 Jupyter notebook 打开
- 进入指定文件夹目录下 -->> 输入cmd -->>输入:‘ jupyter notebook ./ # jupyter notebook ’ 打开
- Esc键进入命令模式
- Enter键进入编辑模式
–>>>命令模式下快捷键 - Shift-Enter : 运行本单元,选中下个单元
- Ctrl-Enter : 运行本单元
- Alt-Enter : 运行本单元,在其下插入新单元
- Y : 单元转入代码状态
- M :单元转入markdown状态
- A : 在上方插入新单元
- B : 在下方插入新单元
- D,D : 删除选中的单元
- Shift-m:与下方单元格合并



