Jupyther notebook(曾经的Ipython notebook),是一个可以把代码、图像、注释、公式和作图集于一处,实现可读性及可视化分析的工具,支持多种编程语言。官方使用手册。
安装前,你需要装好python环境,并且安装pip包管理器。
或者
python -m pip install jupyter或者
python3 -m pip install jupyter或者
ipython notebook此时会在你的家目录生成配置文件.ipython/profile_default/ipython_kernel_config.py
直接在该文件的头部添加代码
c = get_config() c.InteractiveShell.ast_node_interactivity = "all"vi ~/.ipython/ipythonrc
readline_parse_and_bind "\M-i": " " readline_parse_and_bind "\M-o": "\d\d\d\d" readline_parse_and_bind "\M-I": "\d\d\d\d注释掉这3行
需要设置中文字体,否则中文会乱码。
import matplotlib.pyplot as plt plt.rc('font', family='Microsoft YaHei Mono', size=12)https://www.zybuluo.com/hanxiaoyang/note/534296
https://zhuanlan.zhihu.com/p/26739300?group_id=843868091631955968
https://www.cnblogs.com/Sinte-Beuve/p/5148108.html
https://www.zhihu.com/question/59392251
http://www.jianshu.com/p/2f3be7781451 Anaconda使用总结
JupyterLab是Jupyter Notebook的增强版本,看起来更像是一个IDE。
pip install jupyterlab如果你使用的Jupyter版本早于5.3,那么你还需要运行以下命令来启动JupyterLab服务组件。
jupyter serverextension enable --py jupyterlab --sys-prefix使用以下命令运行JupyterLab:
jupyter labJupyterLab 会在自动在浏览器中打开. See our documentation for additional details.
查看令牌
jupyter notebook list输出
http://localhost:8888/?token=c8de56fa... :: /Users/you/notebooks您可以通过运行以下命令列出当前安装的扩展:
jupyter labextension list通过运行以下命令卸载扩展:
jupyter labextension uninstall my-extension其中my-extension是扩展名列表中的打印名称。您也可以使用此命令卸载核心扩展(以后可以随时重新安装核心扩展)。
https://jupyterlab.readthedocs.io/en/latest/user/extensions.htmlhttps://github.com/jupyterlab/jupyterlab#getting-helphttps://gitter.im/jupyterlab/jupyterlabhttp://jupyterlab.github.io/jupyterlab/
转载于:https://www.cnblogs.com/ssooking/p/9165560.html