Skip to content

Commit 51d5e73

Browse files
committed
update
1 parent 0341426 commit 51d5e73

File tree

5 files changed

+198
-1
lines changed

5 files changed

+198
-1
lines changed

blog/4.3-release.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
---
2+
title: "发布 CodeLab Adapter 4.3"
3+
date: 2021-02-07
4+
tags: ["CodeLab"]
5+
Slug: adapter-4-3
6+
---
7+
8+
![](https://adapter.codelab.club/img/003610-scaling-computers.jpg)
9+
10+
> 我们如何制造计算机,使它们像细胞一样扩展到亿万倍? -- Alan Kay 《计算机革命尚未发生》
11+
12+
---
13+
14+
CodeLab Adapter 4.3 是过年前的最后一个大版本,关注可扩展性。同时也为我们正在制作的《交互计算》课程提供更友好的支持。
15+
16+
# 关于《交互计算》课程
17+
18+
《交互计算》是一门围绕创意实现而设计的 Python 入门课程。
19+
20+
<video width='80%' src="https://adapter.codelab.club/video/6926376256734100952.mp4" controls="controls"></video>
21+
22+
我们计划在4月份发布新课程。
23+
24+
# 支持 pip 安装第三方库!
25+
不少用户在邮件中要求 Adapter 开箱支持 pip 安装第三方库,主要有以下2个使用场景:
26+
27+
* 允许用户自由引入Python社区生态数以百万计的第三方库
28+
* 方便Adapter的定制分发: 每个用户都可以增删内置的库,进而分发个性化的编程环境
29+
30+
这些场景确实都很有价值,我们花了不少时间研究这个特性,终于在 4.3 版本中完成。
31+
32+
以下是一个例子, 打开Adapter后,[运行Jupyter插件](https://adapter.codelab.club/extension_guide/jupyterlab/)
33+
34+
```py
35+
# 举个例子: 安装 furl
36+
pip.main(["install", "furl"])
37+
# 你也可以使用国内的源:
38+
# pip.main(['install', 'furl', '-i', 'https://mirrors.aliyun.com/pypi/simple'])
39+
```
40+
41+
## 关于二次分发
42+
Adapter的完整版,目前是绿色(免装)的,这意味着,用户只需修改好自己的本地软件,直接分发给下游用户即可!当然如果商业使用的话,需要得到我们的商业授权。
43+
44+
这能带来什么用户价值呢? 满足个性化需求。
45+
46+
设想有两家公司,一家使用 [Tensorflow](https://www.tensorflow.org/) 用于AI教学,另一家则使用 [PyTorch](https://pytorch.org/get-started).
47+
48+
它们只需在下载 Adapter 之后,在自己的Adapter版本里安装好各自的依赖环境(Tensorflow或PyTorch),直接分发本地的Adapter给用户即可!
49+
50+
这意味着将存在各种版本的 Adapter,它们各自服务于个性化的需求,却共有有我们维护的强大(开箱可用)内核: 连接一切的能力,以及对个人计算偏好的特性的持续支持: 消息/Linda/Scratch。
51+
52+
## 升级 codelab_adapter_client
53+
[codelab_adapter_client](https://github.com/CodeLabClub/codelab_adapter_client_python) 升级到 4.1.3, 为了更好服务于《交互计算》课程, 使 API 更为简洁。 《交互计算》中大量使用与消息有关的 API 在 Python 和 Scratch 中 talk,所以我们把与此有关的 API 做得更为简洁。
54+
55+
在旧版本中:
56+
57+
```py
58+
from codelab_adapter_client.utils import run_monitor, send_simple_message
59+
```
60+
61+
4.3 版本中:
62+
63+
```py
64+
from codelab_adapter_client import run_monitor, send_message
65+
```
66+
67+
# 新插件
68+
69+
## Overdrive
70+
![](https://adapter.codelab.club/img/overdrive.jpg)
71+
72+
与你的朋友或人工智能来一场速度与激情的较量。
73+
74+
<video width="80%" src="https://adapter.codelab.club/video/fe5fb1d3ce1d311740faf31eb7cb1f.MP4" controls="controls"></video>
75+
76+
# 插件改进
77+
主要的改进依然使为了服务《交互计算》课程
78+
79+
80+
## Python kernel
81+
* 避免传递复杂数据结构,只传递消息(字符串),与 Scratch 消息保持一致
82+
* 使得 Python Kernel 插件里的字符串积木保持Scratch风格(不带引号)
83+
84+
---
85+
86+
为了与 Scratch 字符串风格保持一致,改进的插件还有:
87+
88+
* NetworkZero 插件
89+
* micro:bit Radio 插件
90+
* OSC 插件
91+
* EIM 插件
92+
93+
## RoboMasterEP 2.0
94+
升级 RoboMasterEP 插件版本到 2.0.1: 添加已连接提醒、连接失败提醒
95+
96+
97+
# 参考
98+
* [The Computer Revolution Hasn't Happened Yet](https://catonmat.net/videos/the-computer-revolution-hasnt-happened-yet)

blog/4.4-release.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: "发布 CodeLab Adapter 4.4"
3+
date: 2021-02-25
4+
tags: ["CodeLab"]
5+
Slug: adapter-4-4
6+
---
7+
8+
![](/img/pexels-photo-139976.jpeg)
9+
10+
> 格言警句言犹未尽,需要读者深入地参与其间。 -- 麦克卢汉《理解媒介》
11+
12+
以下是主要更新.
13+
14+
<!--truncate-->
15+
16+
17+
# 新增插件
18+
19+
## micro:bit v2 新插件
20+
21+
22+
<video width='80%' src="https://adapter.codelab.club/video/89885caff19be76b24502f13f7d425.MP4" controls="controls"></video>
23+
24+
25+
为 micro:bit v2 引入新插件。 以便于在 Scratch 中释放 microbit v2 的更多潜力: 可以在Scratch中使用 micro:bit V2 所具备的所有传感器和输出功能,当然包括 **触摸徽标****声音输入**
26+
27+
该插件使得用户在 Scratch 中使用 microbit 时,拥有近乎 makecode 的能力。 由于采用蓝牙连接,使用者得到了移动的自由。
28+
29+
30+
![](https://adapter.codelab.club/img/7909117426fc267dbb28c104bfc140bb.png)
31+
32+
或许是迄今为止在 Scratch 中使用 microbit 的最佳方案 :)
33+
34+
<!--为了提供 **刷入固件** 积木,Adapter提供了 microbit 固件烧录的 ws api(替代之前的rest api,rest api在新的mac系统下有跨域问题-->
35+
36+
这儿是: [帮助文档](https://adapter.codelab.club/extension_guide/microbitMore/)
37+
38+
# 插件更新
39+
## jupyterlab插件 : jupyterlab 升级到 3.X 版本
40+
JupyterLab 在 2021 年发布了新的里程碑 : 3.X 版本。Adapter 4.4 集成了当前最新的版本。
41+
42+
![](/img/0_8CYAXfBDt0v95iOc.png)
43+
44+
关于 Jupyterlab 3.x 的新特性参考: [JupyterLab 3.0 is released!](https://blog.jupyter.org/jupyterlab-3-0-is-out-4f58385e25bb)
45+
46+
其中一个有用的变更是[对中文的友好支持](https://adapter.codelab.club/extension_guide/jupyterlab/#_3).
47+
48+
## overdrive 插件
49+
* 修复 windows 下无法发现 overdrive 的问题
50+
* 支持在 Scratch 中连接 2 台 overdrive
51+
52+
# 提供对 PRO_KEY 的支持
53+
PRO_KEY 是 CodeLab 尝试服务合作伙伴和企业用户的高级特性。
54+
55+
使用 PRO_KEY 可以启用 Adapter 的高级特性: 激光雷达、overdrive...
56+
57+
欢迎发送邮件咨询/合作/购买: `wuwenjie@codelab.club`

static/img/0_8CYAXfBDt0v95iOc.png

104 KB
Loading
463 KB
Loading

static/video_config.json

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,53 @@
2424
}
2525
],
2626
"横版视频": [
27+
{
28+
"src": "https://adapter.codelab.club/video/hello-blender.mp4",
29+
"title": "Scratch & Blender 星舰剧场",
30+
"id": "3",
31+
"tags": [],
32+
"weight": ""
33+
},
34+
{
35+
"src": "https://adapter.codelab.club/video/89885caff19be76b24502f13f7d425.MP4",
36+
"title": "microbit 无线油门",
37+
"id": "3",
38+
"tags": [],
39+
"weight": ""
40+
},
41+
{
42+
"src": "https://adapter.codelab.club/video/8b4596f7a47d6beb51cb878711a8a7.MP4",
43+
"title": "Neverland 2.0 原型--踢香蕉",
44+
"id": "3",
45+
"tags": ["Neverland2"],
46+
"weight": ""
47+
},
48+
{
49+
"src": "https://adapter.codelab.club/video/fe5fb1d3ce1d311740faf31eb7cb1f.MP4",
50+
"title": "Overdrive",
51+
"id": "3",
52+
"tags": [],
53+
"weight": ""
54+
},
55+
{
56+
"src": "https://adapter.codelab.club/video/1081e7f968389114158aea3601ef21.MP4",
57+
"title": "Neverland 2.0 原型--记忆里翻牌游戏",
58+
"id": "3",
59+
"tags": ["Neverland2"],
60+
"weight": ""
61+
},
62+
{
63+
"src": "https://adapter.codelab.club/video/8470b781e0551b782fba2e7d72382c.MP4",
64+
"title": "Neverland 2.0 原型--记忆里翻牌游戏(与机器人协作)",
65+
"id": "3",
66+
"tags": ["Neverland2"],
67+
"weight": ""
68+
},
2769
{
2870
"src": "https://adapter.codelab.club/video/8a9edf95b1d1da2fd2dcc11ef3427a.MP4",
2971
"title": "Hello Raspberry Pi Pico",
3072
"id": "3",
31-
"tags": [],
73+
"tags": ["Neverland2"],
3274
"weight": ""
3375
},
3476
{

0 commit comments

Comments
 (0)