jupyter notebook安装及使用
Jupyter Notebook是一个Web应用程序,允许您创建和共享包含实时代码,方程,可视化和说明文本的文档。 用途包括:数据清理和转换,数值模拟,统计建模,机器学习等等。
安装:
pip install jupyter
打开:
jupyter notebook
打开出错:UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe5 in position 4: ordinal not in range(128)
换个姿势(注意大小写):
LANG=zn jupyter notebook
打开又出错:Running as root is not recommended. Use --allow-root to bypass.
查看配置文件位置:
LANG=zn jupyter notebook --generate-config --allow-root
打开配置文件:
gedit /root/.jupyter/jupyter_notebook_config.py
更改#c.NotebookApp.allow_root = False为c.NotebookApp.allow_root =True保存!
即可正常打开。