老码农:小码匠,今天我们再装个工具,是数据科学家的挚爱,他有一个好听的名字。
小码匠:叫什么啊? 老码农:猪皮特,好玩吧。
小码匠:皮特猪,是谁发明的? 老码农:这个我还真不知道,看官网介绍,这个是最新的贡献者,都打推特的标签,不知道最早是不是来自于推特的一群开发者最早开发的。
老码农:要不你问度娘查查,查到结果告诉我,如何? 小码匠:No,你来吧。
老码农:这么好的学习机会不珍惜。这回我又整理了一篇文章。 小码匠:不是万字长文吧,老爸,说真心话,我怕了,太长了,读起来有点累啊。 老码农:白吃馒头还嫌面黑,就知道会提这个无理要求,但是满足你,循序渐进给你讲。
老码农:还是老规矩,你自己读,不会的在探讨。 小码匠:为啥你不愿意给我讲啊
老码农:想歇会,这个理由可以吧。 小码匠:你不愿意理我,哼
Jupyter Desktop
安装
利用Conda进入自己的开发环境:
例如:conda activate coder-study
(base) coder@192 dev % conda env list
# conda environments:
#
/Applications/JupyterLab.app/Contents/Resources/jlab_server
base * /Users/coder/opt/miniconda3
coder-study /Users/coder/opt/miniconda3/envs/coder-study
(base) coder@192 dev % conda activate coder-study
(coder-study) coder@192 dev %
安装
conda install -c conda-forge jupyterlab
启动Jupyter lab,第一次启动会比较慢,要初始化些东东,耐心等待就行
jupyter-lab
jupyter01-03
安装JupyterLab会少带Notebook也安装上了,没必要单独安装。命令行中输入jupyter,然后按tab键,以juypter开头的命令都显示出来了,看到notebook了吧。
(coder-study) coder@192 dev % jupyter
jupyter jupyter-kernel jupyter-labextension jupyter-nbclassic jupyter-notebook jupyter-serverextension
jupyter-bundlerextension jupyter-kernelspec jupyter-labhub jupyter-nbconvert jupyter-run jupyter-troubleshoot
jupyter-dejavu jupyter-lab jupyter-migrate jupyter-nbextension jupyter-server jupyter-trust
启动Notebook
jupyter-notebook
jupyter01-04
好的插件让我们专注在写业务代码,不用来会做各种切换。
jupyter labextension install @jupyterlab/toc-extension
conda install -c conda-forge jupyterlab-drawio
演示
jupyter labextension install jupyterlab-spreadsheet
pip install jupyterlab-spreadsheet-editor
conda install -c conda-forge jlab-enhanced-cell-toolbar
小码匠:老码农,这回还好,都是动手的东西,我喜欢。我按照你的装了个环境。
老码农:最懂小孩心,我高明吧。
小码匠:自吹自擂,得瑟吧。
老码农:工具你自己先研究怎么用,多自己研究,少上来就让老爸讲,提高自己动手能力。
小码匠:你总是有各种理由,不陪我,不教我,还让我哑巴吃黄莲,找不到好理由反驳你,老江湖。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有