- 安装 Jupyter
(venv) ➜ tf-course pip install jupyter
- 创建一个kernel
(venv) ➜ tf-course python -m ipykernel install --user --name=venv
- 查看当前可用kernel列表
(venv) ➜ tf-course jupyter kernelspec list
Available kernels:
venv /Users/lujie/Library/Jupyter/kernels/venv
python2 /Users/lujie/Desktop/workspace/tf-course/venv/bin/../share/jupyter/kernels/python2
- 打开 notebook
(venv) ➜ tf-course jupyter notebook
The Jupyter HTML Notebook.
这将启动一个基于tornado的HTML笔记本服务器,它提供一个html5/
javascript笔记本客户端。
Traceback (most recent call last):
xxxxxxx
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)
如果报上述错误则执行(venv) ➜ tf-course LANG=zn jupyter notebook
来打开