An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# Brython 控制台挂件 | widget-brython-console

[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Zuoqiu-Yingyi/widget-brython-console?include_prereleases&style=flat-square)](https://github.com/Zuoqiu-Yingyi/widget-brython-console/releases/latest)
[![GitHub Release Date](https://img.shields.io/github/release-date/Zuoqiu-Yingyi/widget-brython-console?style=flat-square)](https://github.com/Zuoqiu-Yingyi/widget-brython-console/releases/latest)
[![GitHub License](https://img.shields.io/github/license/Zuoqiu-Yingyi/widget-brython-console?style=flat-square)](https://github.com/Zuoqiu-Yingyi/widget-brython-console/blob/main/LICENSE)
[![GitHub last commit](https://img.shields.io/github/last-commit/Zuoqiu-Yingyi/widget-brython-console?style=flat-square)](https://github.com/Zuoqiu-Yingyi/widget-brython-console/commits/main)
![GitHub repo size](https://img.shields.io/github/repo-size/Zuoqiu-Yingyi/widget-brython-console?style=flat-square)
![hits](https://hits.b3log.org/Zuoqiu-Yingyi/widget-brython-console.svg)
[![GitHub all releases](https://img.shields.io/github/downloads/Zuoqiu-Yingyi/widget-brython-console/total?style=flat-square)](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

![preview-relative](./preview.png)
![preview-location](/widgets/brython-console/preview.png)

## 功能 | 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)