

























Jupyther notebook(曾经的Ipython notebook),是一个可以把代码、图像、注释、公式和作图集于一处,实现可读性及可视化分析的工具,支持多种编程语言。官方使用手册。
安装前,你需要装好python环境,并且安装pip包管理器。
pip install --upgrade pip
sudo pip install jupyter notebook
或者
python -m pip install jupyter
pip3 install --upgrade pip
sudo pip3 install jupyter notebook
或者
python3 -m pip install jupyter
jupyter notebook
或者
ipython notebook
ipython profile create
此时会在你的家目录生成配置文件.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 lab
JupyterLab 会在自动在浏览器中打开. 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.html
https://github.com/jupyterlab/jupyterlab#getting-help
https://gitter.im/jupyterlab/jupyterlab
http://jupyterlab.github.io/jupyterlab/
声明:
作者:ssooking
联系邮箱:c3Nvb2tpbmdAeWVhaC5uZXQ=
若无特殊说明,所发博文皆为原创,转载请务必注明出处、保留原文地址。欢迎交流分享!如果您有任何问题,请联系我!
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。