安装
pip install jupyter
运行
jupyter notebook
//jupyter notebook --ip=127.0.0.1 --port=8000
在windows中默认的启动路径是:C:\users\administrator
常用快捷键
- Enter : 本单元换行
- Shift+Enter : 运行本单元,选中下个单元
- Ctrl+Enter : 运行本单元
- Alt+Enter : 运行本单元,在其下插入新单元
修改 启动 jupyter 后的默认路径
jupyter notebook --generate-config
按上述路径找到文件 jupyter_notebook_config.py
打开文件jupyter_notebook_config.py,搜索如下内容:
notebook_dir
#必须删除,且前面不能留空格。
文件存放路径: notebook_dir=“里面的路径就是文件的存放路径”。