本文分享jupyter notebook大版本v7.0.0更新亮点+简单测试!
近日,jupyter notebook大版本v7.0.0更新,jupyter notebook v7.0.0基于jupyterlab,因此它包含了过去几年jupyterlab中添加的许多新功能和改进,部分亮点更新包括: 主题和深色模式 (theming and dark mode) 交互式调试 (interactive debugging) 实时协作 (real-time collaboration) 界面语言更换 (internationalization) jupyterlab扩展支持 (support for many jupyterlab extensions) 移动设备支持 (compact view on mobile devices) 目录索引 (table of contents) jupyter notebook 7.0.0体验 光速安装 pythonic生物人温馨提示:变化有点大,升级需谨慎!
# 升级方法pip install notebook --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
安装成功了!
简单体验 体验一下,
感觉变化有些大,总体yyds!
以下简单测试从jupyter notebook version 6 升级到version 7 时新增的部分内容:
主题和深色模式 (theming and dark mode) jupyter notebook默认的是白色主题,现在jupyter notebook 7默认支持护眼深色主题:
也可以使用jupyterlab的主题,如pip install jupyterlab-night安装jupyterlab的浅色主题。
其它主题,如nord主题,
如mexico主题,
交互式调试 (interactive debugging) jupyter notebook 7新增了来自jupyterlab的交互式调试器 (interactive debugger),它使您能够逐个代码单元格地执行代码,也可以设置断点并检查变量。
实时协作 (real-time collaboration) 您可以与其他用户共享您的notebook并实时操作他,甚至适用于jupyterlab和jupyter notebook之间实时协作。
pip install jupyter-collaboration 即可开始实时写作。
界面语言更换 (internationalization) jupyter notebook 7现在提供了设置用户界面显示语言的功能,需要安装python语言包,例如,可以使用pip install jupyterlab-language-pack-zh-cn命令安装中文语言包:
更多语言支持:https://github.com/jupyterlab/language-packs/tree/main
jupyterlab扩展支持 (support for many jupyterlab extensions) jupyter notebook 7是基于jupyterlab的,因此支持许多现有的jupyterlab扩展。
您可以使用pip或conda安装jupyterlab扩展。例如,要安装lsp(language server protocol)扩展以获得增强的代码补全功能,您可以使用以下命令:
# pip安装pip install jupyter-lsp# 或者conda安装conda install -c conda-forge jupyter-lsp 其它像jupyterlab中nbgrader和rise这样的流行扩展已经被移植到适用于jupyter notebook 7的版本。
移动设备支持 (compact view on mobile devices) jupyter notebook 7会自动在移动设备上切换到更紧凑的布局,使得在移动时运行代码更加方便。
目录索引 (table of contents) jupyter notebook 7新增目录索引,它允许您使用侧边栏导航浏览notebook内容,目录索引默认启用,就像在jupyterlab中一样。
进一步学习:
https://github.com/jupyter/notebook https://jupyter-notebook.readthedocs.io/en/latest/changelog.html https://jupyter-notebook.readthedocs.io/en/latest/notebook_7_features.html#support-for-many-jupyterlab-extensions
瑞萨RA6M4系列DMAC和ADC的详细介绍(1)
新版Win10拒绝本地exe安装:必须使用官方商店
IPQ板典型维修实例
金龙项目BMS_SOX算法模块主要功能信息
有史以来最快的半导体“超原子”能将芯片速度提升千倍
Jupyter Notebook 7重磅发布,新增多个特性!
新总统特朗普带来麻烦 分析师下调苹果目标股价
数据存储的换算是怎样的?
控制室LED处理器如何选择
启扬方案:视频会议系统硬件终端解决方案
关于PID的一些理解与调节经验!
选用液晶拼接屏的注意事项
步入式高低温湿热环境舱:打造汽车整车环境试验的先锋利器
感烟探测器电路图大全(两款模拟电路设计原理图详解)
生活无趣,不如来diy一个电子玩具~
对触发电路的要求
第一次投币担保系统在俄罗斯启动
诺基亚官宣两款经典复刻版的国行机型将于12月15日发布
韩国科技巨头三星电子将公布两年来首次季度营业利润下滑
【快速维修】有关集尘器焊缝渗漏的治理方法