https://github.com/zuoqiu-yingyi/widget-brython-console
一个简单可离线运行的的 Brython 控制台挂件 | A sample, offline-running widget of Brython Console.
https://github.com/zuoqiu-yingyi/widget-brython-console
brython console python siyuan siyuan-note widget
Last synced: 5 months ago
JSON representation
一个简单可离线运行的的 Brython 控制台挂件 | A sample, offline-running widget of Brython Console.
- Host: GitHub
- URL: https://github.com/zuoqiu-yingyi/widget-brython-console
- Owner: Zuoqiu-Yingyi
- License: agpl-3.0
- Created: 2021-10-19T04:34:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T06:36:34.000Z (about 2 years ago)
- Last Synced: 2024-04-14T03:08:29.364Z (about 1 year ago)
- Topics: brython, console, python, siyuan, siyuan-note, widget
- Language: JavaScript
- Homepage: https://publish.zuoqiu.space/widgets/brython-console/index.html
- Size: 3.12 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Brython 控制台挂件 | widget-brython-console
[](https://github.com/Zuoqiu-Yingyi/widget-brython-console/releases/latest)
[](https://github.com/Zuoqiu-Yingyi/widget-brython-console/releases/latest)
[](https://github.com/Zuoqiu-Yingyi/widget-brython-console/blob/main/LICENSE)
[](https://github.com/Zuoqiu-Yingyi/widget-brython-console/commits/main)


[](https://github.com/Zuoqiu-Yingyi/widget-brython-console/releases)一个简单可离线运行的的 Brython 控制台挂件
A sample, offline-running widget of Brython Console.现已上架[思源笔记社区集市](https://github.com/siyuan-note/bazaar), 如果您喜欢本主题, 欢迎为本项目点亮一个⭐!
It is now on the shelves of the [Siyuan Notes Community Bazaar](https://github.com/siyuan-note/bazaar). If you like this theme, welcome to light up ⭐ for this project!---
## 预览 | PREVIEW

## 功能 | FUNCTION
- 离线使用 Brython 库交互式运行 Python 脚本
Run Python scripts offline using the Brython library interactively.
- Brython 库所实现的模块详见 [Brython documentation](https://brython.info/static_doc/en/intro.html)
Details of the modules implemented by the library can be found at [Brython documentation](https://brython.info/static_doc/en/intro.html)
- 可拖动的工具栏
A removable toolbar.
- 一个跟随全局主题与`暗色`主题切换开关
A switch for switching between follow the global theme and `Dark` theme.## 开始 | START
### 自动 | AUTO
该挂件已在[思源笔记社区集市](https://github.com/siyuan-note/bazaar)上架, 可直接在集市中安装
The widget has been put on the shelves at [SiYuan community bazaar](https://github.com/siyuan-note/bazaar) and can be installed directly in the Bazaar.### 手动 | MANUAL
1. 在 [Releases](https://github.com/Zuoqiu-Yingyi/widget-brython-console/releases) 中下载发行包, 解压后放到[思源笔记](https://github.com/siyuan-note/siyuan) `<工作空间>/data/widgets/` 目录下
Download the release package in [Releases](https://github.com/Zuoqiu-Yingyi/widget-brython-console/releases), unzip it and place it in the `/data/widgets/` directory of [SiYuan Note](https://github.com/siyuan-note/siyuan)
2. 在笔记中创建一个 `IFrame` 块, 地址填 `/widgets/widget-brython-console` 即可
Create an `IFrame` block in your notes with the address filled in `/widgets/widget-brython-console`## 依赖 | DEPENDENCE
### 源码 | SOURCE
- [GitHub - brython-dev/brython: Brython (Browser Python) is an implementation of Python 3 running in the browser](https://github.com/brython-dev/brython) *[BSD\-3\-Clause License](https://github.com/brython-dev/brython/blob/master/LICENCE.txt)*
## 更改日志 | CHANGE LOG
[CHANGE LOG](./CHANGELOG.md)