Skip to content

Commit

Permalink
jupyter note fig localize
Browse files Browse the repository at this point in the history
  • Loading branch information
AIboy996 committed Jan 17, 2024
1 parent 54202dc commit 953a2be
Show file tree
Hide file tree
Showing 120 changed files with 389 additions and 140 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/Note/jupyter/assets/hero.png
81 changes: 49 additions & 32 deletions docs/Note/jupyter/jupyter1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,42 @@ tags:
- Jupyter
---

# 人生苦短,我用Jupyter
> 原文发在微信公众号
诚如标题,一款好用的IDE对于编程来说太重要了!!而在芸芸众IDE中,jupyter无疑是一颗super star.

*当然,一门好用的编程语言也是很重要的*
<figure markdown>
![](./assets/af66b27f-89af-46a2-9cb1-52e1cfa6525d.png)
<caption> 人生苦短,我用python</caption>
</figure>

<center><s>人生苦短,我用python</s></center>

![](https://files.mdnice.com/user/25860/af66b27f-89af-46a2-9cb1-52e1cfa6525d.png)
## 敬请期待
我们这个系列的推文将从各个方面来介绍jupyter(主要是jupyter notebook)以及它的使用方法,预计将会包括以下内容:

- 1、jupyter简介(本文)
- 2、jupyter nb的基本使用
- 安装及个性化配置
- 插件
- notebook的书写
- 代码单元格
- markdown单元格
- 其他单元格
- notebook的导出
- 安装及个性化配置
- 插件
- notebook的书写
- 代码单元格
- markdown单元格
- 其他单元格
- notebook的导出
- 3、jupyter nb的进阶使用
- ipython介绍
- 安装其他kernel
- magic command
- 远程连接、多人协同
- ipython介绍
- 安装其他kernel
- magic command
- 远程连接、多人协同
- 4、markdown和latex基础(番外)
<table border="0" cellpadding="0" cellspacing="0" style="border:1px solid #000000;">
<tr>
<td><img src=https://files.mdnice.com/user/25860/179a46c0-9e3c-4867-ad8a-e3371b6929dd.png border=0></td>
<td><img src=https://files.mdnice.com/user/25860/76ee8088-704e-4a8d-ae86-8c1bed35903e.png border=0></td>
</tr>
</table>

<center><s>所以点个关注吧,不定期更新</s></center>

## jupyter的毒
我中了jupyter的毒,每次遇到编程项目就忍不住点开它,我控制不住自己。每每我想改过自新,就会发现jupyter的新功能,就这样不断深陷其中,不能自拔。终于到了某一天,仅仅自己使用jupyter已经不能满足我了,于是我开始疯狂向别人安利。我不知道这样的后果,但是我就是这样做了,希望您没事儿!

![](https://files.mdnice.com/user/25860/32204a6e-0b3b-4b92-82e1-4bd62b459433.png)
<figure markdown>
![](./assets/32204a6e-0b3b-4b92-82e1-4bd62b459433.png)
</figure>


## 什么是Jupyter
Expand All @@ -55,7 +54,9 @@ tags:

所以jupyter的一切都是基于web技术的,类似的软件也有很多,例如VScode的web服务版:code server

![](https://files.mdnice.com/user/25860/ad6111c1-a11a-4db4-96d4-dbb6f592c27a.png)
<figure markdown>
![](./assets/ad6111c1-a11a-4db4-96d4-dbb6f592c27a.png)
</figure>

基于这样一个原理,那么我们很容易就可以实现远程访问,只要你把对应的web端口开放给互联网。也可以实现多人协同,因为作为一个网页当然可以多人同时访问。再进一步我们可以用Docker快速部署相应的环境……

Expand All @@ -68,11 +69,15 @@ print("Hello world!")
```
我们可以在交互式运行环境单独运行这一句话

![](https://files.mdnice.com/user/25860/757168d4-13b9-45bc-a726-f48bd067a7bd.png)
<figure markdown>
![](./assets/757168d4-13b9-45bc-a726-f48bd067a7bd.png)
</figure>

也可以把这句话写入python脚本`.py`文件,然后运行整个文件。

![](https://files.mdnice.com/user/25860/f105fb9b-0e17-47c3-adc4-031e745b1b94.png)
<figure markdown>
![](./assets/f105fb9b-0e17-47c3-adc4-031e745b1b94.png)
</figure>
这两种方式没有孰优孰劣,但是用途迥然。

**交互式编程**尤其适合碎片化的探索过程,例如在数据分析的前期进行数据的摸索、整理等;另外也特别适合在学习编程的过程中使用,因为每一行代码都是相对独立的,可以单独理解,配合jupyter notebook可以写出可读性很强的文档。
Expand All @@ -86,30 +91,42 @@ print("Hello world!")
想必作为学习者,绝大部分适合我们期待看到的是一份欧拉式的详尽文档,而不是孤零零的一个高斯式的`.py`脚本文件。

但是不得不说,python自带的交互式环境还是非常难用的,于是ipython应运而生!
![](https://files.mdnice.com/user/25860/6cf6c7e1-3701-4216-aba4-175e12e360a6.png)
<figure markdown>
![](./assets/6cf6c7e1-3701-4216-aba4-175e12e360a6.png)
</figure>
ipython加入了许多新功能,属于是开天辟地级别。而后jupyter notebook在此基础之上更进一步,就成为了现在的样子。

### 项目历史
官网直接截的图,感兴趣的可以仔细逛逛官网。
![](https://files.mdnice.com/user/25860/ad921117-0856-4c20-b03f-4d842c1d7cc1.png)
<figure markdown>
![](./assets/ad921117-0856-4c20-b03f-4d842c1d7cc1.png)
</figure>

### 概念图
![](https://files.mdnice.com/user/25860/d6006832-dc9a-4a09-9d18-b72894e6c54c.png)
<figure markdown>
![](./assets/d6006832-dc9a-4a09-9d18-b72894e6c54c.png)
</figure>
这是官网的封面图,其中可以看到诸如Python、C#、R、VB、JS、Lua……超级多编程语言的图标。这也显示出jupyter强大的包容性,你可以用它~~快乐地~~撸各种语言的代码。

官网再往下滑,你就可以看到jupyter的几大产品:

### Jupyter Lab
未来jupyter的主力软件,但是现阶段还不是那么好用,属于一款战未来的产品。
![](https://files.mdnice.com/user/25860/7ff94ddf-5fa9-46ae-962b-8257d215262b.png)
<figure markdown>
![](./assets/7ff94ddf-5fa9-46ae-962b-8257d215262b.png)
</figure>
### Jupyter Notebook
现阶段jupyter的主力软件,简直不要太好用。也是我们这个系列介绍的主角。

下面列举了四个特点,分别是多语言、易分享、交互式输出、大数据工具集成。
![](https://files.mdnice.com/user/25860/4006cb7f-88a6-4290-9f99-8a44437c9616.png)
<figure markdown>
![](./assets/4006cb7f-88a6-4290-9f99-8a44437c9616.png)
</figure>
### Jupyter Hub
没用过,现在怎么什么阿猫阿狗都有Hub,什么Github、Dockerhub、Po……Hub
![](https://files.mdnice.com/user/25860/8a040148-c010-4a55-adb2-5fa30e301d09.png)
<figure markdown>
![](./assets/8a040148-c010-4a55-adb2-5fa30e301d09.png)
</figure>

## 快来用
总而言之,作为当下最热门的python IDE之一,jupyter有其独特的魔力。加之jupyter对其他语言的广泛支持,她已经成为我生活中不可或缺的一份子了!
Expand Down
Loading

0 comments on commit 953a2be

Please sign in to comment.