1. 介绍
略
2. 安装
pip install jupyter
3. 配置
更改workspace
notebook默认把启动时的当前路径作为默认的工作空间(workspace),也可以自定义。
REM step1 查看jupyter配置文件的位置
C:\WINDOWS\system32>jupyter notebook --generate-config
Writing default config to: C:\Users\Artchy\.jupyter\jupyter_notebook_config.py (Linux路径则是 ~/.jupyter\jupyter_notebook_config.py)
REM step2 设置 c.NotebookApp.notebook_dir配置项,即工作空间路径
REM step3 重启 notebook
4. 简单使用(控制台命令)
(1) 启动
其它几个常用的启动选项(详情使用jupyter notebook -h查看)
jupyter notebook # 全部使用默认
jupyter notebook [--ip 192.168.1.2] [--port 8888] [--autoreload] [--no-browser] [--debug] [--log-level 'INFO']
C:\WINDOWS\system32>jupyter notebook --port 8888
[I 20:26:47.156 NotebookApp] Serving notebooks from local directory: E:\jupyter-workspace
[I 20:26:47.156 NotebookApp] Jupyter Notebook