<pre data-mpa-powered-by="yiban.io" style="max-width: 100%;letter-spacing: 0.544px;text-size-adjust: auto;color: rgb(63, 63, 63);font-size: 16px;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;"><p style="max-width: 100%;min-height: 1em;white-space: normal;font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;font-size: 14px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;caret-color: rgb(62, 62, 62);letter-spacing: 1px;color: rgb(0, 0, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;">点上方“</span><span style="max-width: 100%;letter-spacing: 0.544px;caret-color: rgb(62, 62, 62);color: rgb(0, 122, 170);box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong mpa-from-tpl="t" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;letter-spacing: 1px;box-sizing: border-box !important;overflow-wrap: break-word !important;">菜鸟学Python</span></strong></span><span style="max-width: 100%;caret-color: rgb(62, 62, 62);letter-spacing: 1px;color: rgb(0, 0, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;">”,选择“</span><span style="max-width: 100%;caret-color: rgb(62, 62, 62);letter-spacing: 1px;color: rgb(255, 120, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">星标</strong></span><span style="max-width: 100%;caret-color: rgb(62, 62, 62);letter-spacing: 1px;color: rgb(0, 0, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;">”</span></span></p><section style="max-width: 100%;white-space: normal;color: rgb(0, 0, 0);text-align: left;font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-id="85660" data-custom="rgb(117, 117, 118)" data-color="rgb(117, 117, 118)" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section data-id="85660" data-custom="rgb(117, 117, 118)" data-color="rgb(117, 117, 118)" style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><p style="max-width: 100%;min-height: 1em;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;font-size: 14px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="max-width: 100%;letter-spacing: 0.544px;caret-color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;">471篇原创干货</span></strong><span style="max-width: 100%;letter-spacing: 0.544px;caret-color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;">,第一时间送达</span></span></p><section class="mp_profile_iframe_wrp"><mpprofile class="js_uneditable custom_select_card mp_profile_iframe" data-pluginname="mpprofile" data-id="MzIxNjM4NDE2MA==" data-headimg="http://mmbiz.qpic.cn/mmbiz_png/qX7rSBgoEp0aSuoRCl8j4haF0C1AE1nRjdL3mNVtc2zicicvIhf2jQeWibQxk0FoMA2eLzbk96DKd5lchruHvuKPQ/0?wx_fmt=png" data-nickname="菜鸟学Python" data-alias="cainiao_xueyuan" data-signature="已原创460+篇,从入门,进阶技巧,爬虫数据分析,数据可视化等,以及经验和技巧的总结,趣味原创文章,破解九宫格,破解Google面试题,情人节选对象,微软面试题,弹球游戏,聊天机器人等欢迎关注!" data-from="0"></mpprofile></section><p style="max-width: 100%;min-height: 1em;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span style="font-size: 15px;color: rgb(123, 127, 131);">转自:机器之心</span><br /></p></section></section></section></section></section></section></section></section></section></section></section>
Jupyter Notebook
是一个很棒的教学、探索和编程环境,但其功能不足也是出了名的。幸好,有许多方法可以改进这个不错的工具,如 Jupyter Notebook
扩展工具。极简版教程
<span style="margin-bottom: -7px;display: block;background: url("https://www.zkxjob.com/wp-content/uploads/2022/07/wxsync-2022-07-acdab89b66c83e4480d4b291a761fcbc.png") 10px 10px / 40px no-repeat rgb(30, 30, 30);height: 30px;width: 671px;border-radius: 5px;"></span><section style="padding: 15px 16px 16px;overflow-x: auto;color: rgb(220, 220, 220);display: -webkit-box;font-family: "Operator Mono", Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(30, 30, 30);border-radius: 5px;margin-left: 0px;margin-right: 0px;">pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install<br /></section>
notebook
,单击「edit」,然后点「nbextensions config」)notebook
的工具栏里可以看到扩展插件:Jupyter Notebook
扩展插件是扩展 notebook 环境基本功能的简单插件。它们用 JavaScript 语言编写,会自动套用代码格式或者在单元格完成后发送浏览器通知。扩展插件目前仅支持 Jupyter Notebook
(不支持 Jupyter Lab)。1、Table of Contents:更容易导航
notebook
的顶部添加一个链接目录。这样会显示你选择了哪一个目录以及哪一个正在运行:2、Autopep8:轻轻一击就能获得简洁代码
3、variable inspector:跟踪你的工作空间
4、ExecuteTime:显示单元格的耗时
5、隐藏代码输入:隐藏过程,展示结果
结论
Jupyter Notebook
扩展插件,花点时间弄清楚哪些有用,然后提高自己的工作效率。虽然这些功能不至于改变你的人生,但它们带来的益处也是值得的。而且累积起来为你节约了很多宝贵的开发时间。VS Code
),但 Jupyter Notebook
仍然是数据科学工作流程中不可或缺的一部分。如果你要使用这个环境,就最好把它用到极致,以从中获得最大的收益。选自towardsdatascience 作者:William Koehrsen 编译:机器之心(nearhuman2014) 原文:https://towardsdatascience.com/jupyter-notebook-extensions-517fa69d2231
本篇文章来源于: 菜鸟学Python
本文为原创文章,版权归知行编程网所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ Python导入包注意事项01/07
- ♥ python中设置了什么09/02
- ♥ python3空闲是如何工作的12/04
- ♥ 如何在python中获取列表的长度08/21
- ♥ Python基础必学:break和continue语句用法09/16
- ♥ python中OpenCV的人脸检测功能11/17
内容反馈