Jupyter 首先是一款 Notebook,然后也是一款 Python 的开发工具。
我对 Jupyter 的定位:一款能边学 Python 边做笔记的开发工具。
先安装 Python,然后通过 pip 安装
pip install notebook
更改 notebook 默认打开的路径
jupyter notebook --generate-config
修改 jupyter_notebook_config.py
中的 c.NotebookApp.notebook_dir
为我们的默认文件夹
打开 jupyter notebook
jupyter notebook
交互性好,环境变量全局保存,适合写 Demo,然后加注释保存,适合写技术文档,避免了一遍在 IDE 上测试,一遍切换到笔记软件机笔记的尴尬。
Jupyter 源文件是纯文本文件,可以直接当成笔记保存下来。
可以转成 markdown 文件直接成为笔记。