Skip to content

Commit

Permalink
Merge pull request #9 from Zuoqiu-Yingyi/dev
Browse files Browse the repository at this point in the history
chore: release v0.1.2
  • Loading branch information
Zuoqiu-Yingyi committed Sep 8, 2023
2 parents df4af13 + 2097d86 commit 74b42d2
Show file tree
Hide file tree
Showing 11 changed files with 164 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

env:
PACKAGE_NAME: jupyter-client
PACKAGE_VERSION: 0.1.1
PACKAGE_VERSION: 0.1.2

jobs:
release-please:
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<img alt="icon" src="./public/icon.png" style="width: 8em; height: 8em;">

---
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?include_prereleases)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub Release Date](https://img.shields.io/github/release-date/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub License](https://img.shields.io/github/license/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/blob/main/LICENSE)
[![GitHub last commit](https://img.shields.io/github/last-commit/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/commits/main)
![GitHub repo size](https://img.shields.io/github/repo-size/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)
<!-- ![hits](https://hits.b3log.org/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client.svg) -->
![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hy/Zuoqiu-Yingyi/siyuan-packages-jupyter-client)
[![GitHub all releases](https://img.shields.io/github/downloads/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/total)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases)
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?include_prereleases&style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub Release Date](https://img.shields.io/github/release-date/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub License](https://img.shields.io/github/license/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/blob/main/LICENSE)
[![GitHub last commit](https://img.shields.io/github/last-commit/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/commits/main)
![GitHub repo size](https://img.shields.io/github/repo-size/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)
![hits](https://hits.b3log.org/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client.svg)
<!-- ![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hy/Zuoqiu-Yingyi/siyuan-packages-jupyter-client?style=flat-square) -->
[![GitHub all releases](https://img.shields.io/github/downloads/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/total?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases)

---
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jupyter-client",
"private": true,
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
25 changes: 17 additions & 8 deletions public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<img alt="icon" src="https://cdn.jsdelivr.net/gh/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/public/icon.png" style="width: 8em; height: 8em;">

---
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?include_prereleases)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub Release Date](https://img.shields.io/github/release-date/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub License](https://img.shields.io/github/license/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/blob/main/LICENSE)
[![GitHub last commit](https://img.shields.io/github/last-commit/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/commits/main)
![GitHub repo size](https://img.shields.io/github/repo-size/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)
<!-- ![hits](https://hits.b3log.org/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client.svg) -->
![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hy/Zuoqiu-Yingyi/siyuan-packages-template)
[![GitHub all releases](https://img.shields.io/github/downloads/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/total)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases)
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?include_prereleases&style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub Release Date](https://img.shields.io/github/release-date/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub License](https://img.shields.io/github/license/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/blob/main/LICENSE)
[![GitHub last commit](https://img.shields.io/github/last-commit/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/commits/main)
![GitHub repo size](https://img.shields.io/github/repo-size/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)
![hits](https://hits.b3log.org/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client.svg)
<!-- ![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hy/Zuoqiu-Yingyi/siyuan-packages-jupyter-client?style=flat-square) -->
[![GitHub all releases](https://img.shields.io/github/downloads/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/total?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases)

---
[简体中文](./README_zh_CN.md) \| English
Expand Down Expand Up @@ -63,6 +63,7 @@ This is a plugin for [SiYuan Note](https://github.com/siyuan-note/siyuan) that c
* Open method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Session</kbd> > <kbd>Session Settings</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Session</kbd> > <kbd>Session Settings</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Session</kbd> > <kbd>Session Settings</kbd>
* Panel features

Expand Down Expand Up @@ -112,6 +113,7 @@ This is a plugin for [SiYuan Note](https://github.com/siyuan-note/siyuan) that c
* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Session</kbd> > <kbd>Close Session</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Session</kbd> > <kbd>Close Session</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Session Menu</kbd> > <kbd>Close Session</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Session</kbd> > <kbd>Close Session</kbd>
* Notes
Expand All @@ -125,20 +127,23 @@ This is a plugin for [SiYuan Note](https://github.com/siyuan-note/siyuan) that c
* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Kernel</kbd> > <kbd>Reconnect</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Kernel</kbd> > <kbd>Reconnect</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Kernel</kbd> > <kbd>Reconnect</kbd>
* This operation will close the current WebSocket connection and create a new connection
* Interrupt kernel

* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Kernel</kbd> > <kbd>Interrupt Kernel</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Kernel</kbd> > <kbd>Interrupt Kernel</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Kernel</kbd> > <kbd>Interrupt Kernel</kbd>
* If the kernel is currently running a program (in a busy state), this operation will interrupt the execution of the program, throw a `KeyboardInterrupt` exception, and change the kernel status to ready.
* Restart kernel

* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Kernel</kbd> > <kbd>Restart Kernel</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Kernel</kbd> > <kbd>Restart Kernel</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Kernel</kbd> > <kbd>Restart Kernel</kbd>
* Close the current kernel, restart a new kernel, and establish a connection with it
* Notes
Expand All @@ -150,6 +155,7 @@ This is a plugin for [SiYuan Note](https://github.com/siyuan-note/siyuan) that c
* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Kernel</kbd> > <kbd>Close Kernel</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Kernel</kbd> > <kbd>Close Kernel</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Kernel</kbd> > <kbd>Close Kernel</kbd>
* Close the current kernel
* Notes
Expand Down Expand Up @@ -192,13 +198,15 @@ This is a plugin for [SiYuan Note](https://github.com/siyuan-note/siyuan) that c
* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Run</kbd> > <kbd>Run All Cells</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Run</kbd> > <kbd>Run All Cells</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Run</kbd> > <kbd>Run All Cells</kbd>
* The output text handling solution used at runtime needs to be selected in the sub-menu
* Restart the kernel and run all code cells in the document

* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd> > <kbd>Run</kbd> > <kbd>Run All Cells (Restart Kernel)</kbd>
* <kbd>Breadcrumb Bar</kbd> > <kbd>Jupyter Button</kbd> > <kbd>Run</kbd> > <kbd>Run All Cells (Restart Kernel)</kbd>
* <kbd>Plugin Sidebar Panel</kbd> > <kbd>Document Menu</kbd> > <kbd>Run</kbd> > <kbd>Run All Cells (Restart Kernel)</kbd>
* The output text handling solution used at runtime needs to be selected in the sub-menu
* Run multiple code cells
Expand All @@ -214,6 +222,7 @@ This is a plugin for [SiYuan Note](https://github.com/siyuan-note/siyuan) that c
* Calling method

* <kbd>Block Menu</kbd> > <kbd>Plugin</kbd> > <kbd>Jupyter Client</kbd>
* <kbd>Code Block</kbd> > <kbd>Run Button</kbd>
* The output text handling solution used at runtime needs to be selected in the sub-menu
* If a code block is selected, it will be converted to a code cell and executed
* Run code cells/code blocks using keyboard shortcuts
Expand Down
25 changes: 17 additions & 8 deletions public/README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<img alt="图标" src="https://cdn.jsdelivr.net/gh/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/public/icon.png" style="width: 8em; height: 8em;">

---
[![GitHub 最新发行版本 (最新一次发行/预发行)](https://img.shields.io/github/v/release/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?include_prereleases)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub 最新发行时间](https://img.shields.io/github/release-date/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub 许可证](https://img.shields.io/github/license/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/blob/main/LICENSE)
[![GitHub 最后一次提交时间](https://img.shields.io/github/last-commit/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/commits/main)
![GitHub 仓库大小](https://img.shields.io/github/repo-size/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client)
<!-- ![查看次数](https://hits.b3log.org/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client.svg) -->
![jsDelivr 查看次數 (GitHub)](https://img.shields.io/jsdelivr/gh/hy/Zuoqiu-Yingyi/siyuan-packages-template)
[![GitHub 发行版本下载次数](https://img.shields.io/github/downloads/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/total)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases)
[![GitHub 最新发行版本 (最新一次发行/预发行)](https://img.shields.io/github/v/release/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?include_prereleases&style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub 最新发行时间](https://img.shields.io/github/release-date/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases/latest)
[![GitHub 许可证](https://img.shields.io/github/license/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/blob/main/LICENSE)
[![GitHub 最后一次提交时间](https://img.shields.io/github/last-commit/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/commits/main)
![GitHub 仓库大小](https://img.shields.io/github/repo-size/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client?style=flat-square)
![查看次数](https://hits.b3log.org/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client.svg)
<!-- ![jsDelivr 查看次數 (GitHub)](https://img.shields.io/jsdelivr/gh/hy/Zuoqiu-Yingyi/siyuan-packages-jupyter-client?style=flat-square) -->
[![GitHub 发行版本下载次数](https://img.shields.io/github/downloads/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/total?style=flat-square)](https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client/releases)

---
简体中文 \| [English](./README.md)
Expand Down Expand Up @@ -63,6 +63,7 @@
* 打开方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>会话</kbd>><kbd>会话设置</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>会话</kbd>><kbd>会话设置</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>会话</kbd>><kbd>会话设置</kbd>
* 面板功能

Expand Down Expand Up @@ -112,6 +113,7 @@
* 调用方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>会话</kbd>><kbd>关闭会话</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>会话</kbd>><kbd>关闭会话</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>会话菜单</kbd>><kbd>关闭会话</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>会话</kbd>><kbd>关闭会话</kbd>
* 注意事项
Expand All @@ -125,20 +127,23 @@
* 调用方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>内核</kbd>><kbd>重新连接</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>内核</kbd>><kbd>重新连接</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>内核</kbd>><kbd>重新连接</kbd>
* 该操作会关闭当前所使用的 WebSocket 连接并重新创建一个新的连接
* 中断内核

* 调用方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>内核</kbd>><kbd>中断内核</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>内核</kbd>><kbd>中断内核</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>内核</kbd>><kbd>中断内核</kbd>
* 若内核当前正在执行程序 (处于忙碌状态), 该操作会中断程序的执行, 抛出一个 `KeyboardInterrupt` 异常, 内核状态转换为就绪状态
* 重启内核

* 调用方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>内核</kbd>><kbd>重启内核</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>内核</kbd>><kbd>重启内核</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>内核</kbd>><kbd>重启内核</kbd>
* 关闭当前所使用的内核, 重新启动一个新内核并与其建立连接
* 注意事项
Expand All @@ -150,6 +155,7 @@
* 调用方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>内核</kbd>><kbd>关闭内核</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>内核</kbd>><kbd>关闭内核</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>内核</kbd>><kbd>关闭内核</kbd>
* 关闭当前所使用的内核
* 注意事项
Expand Down Expand Up @@ -192,13 +198,15 @@
* 调用方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>运行</kbd>><kbd>运行所有单元格</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>运行</kbd>><kbd>运行所有单元格</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>运行</kbd>><kbd>运行所有单元格</kbd>
* 运行时所使用的输出文本处理方案需要次级菜单中选择
* 重启内核并运行文档中所有代码单元格

* 调用方式

* <kbd>文档块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>><kbd>运行</kbd>><kbd>运行所有单元格 (重启内核)</kbd>
* <kbd>面包屑栏</kbd>><kbd>Jupyter 按钮</kbd>><kbd>运行</kbd>><kbd>运行所有单元格 (重启内核)</kbd>
* <kbd>本插件侧边面板</kbd>><kbd>文档菜单</kbd>><kbd>运行</kbd>><kbd>运行所有单元格 (重启内核)</kbd>
* 运行时所使用的输出文本处理方案需要次级菜单中选择
* 运行多个代码单元格
Expand All @@ -214,6 +222,7 @@
* 调用方式

* <kbd>块菜单</kbd>><kbd>插件</kbd>><kbd>Jupyter 客户端</kbd>
* <kbd>代码块</kbd>><kbd>运行按钮</kbd>
* 运行时所使用的输出文本处理方案需要次级菜单中选择
* 若选择的是代码块, 则会将其转换为代码单元格并运行
* 使用快捷键运行代码单元格/代码块
Expand Down
2 changes: 1 addition & 1 deletion public/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jupyter-client",
"author": "Zuoqiu Yingyi",
"url": "https://github.com/Zuoqiu-Yingyi/siyuan-plugin-jupyter-client",
"version": "0.1.1",
"version": "0.1.2",
"minAppVersion": "2.10.3",
"displayName": {
"default": "Jupyter Client",
Expand Down
3 changes: 2 additions & 1 deletion src/components/XtermOutputElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

import "xterm/css/xterm.css";
import manifest from "~/public/plugin.json";

import {
Terminal,
Expand Down Expand Up @@ -71,7 +72,7 @@ export class XtermOutputElement extends HTMLElement {
super();
this.save = this.dataset.save;
this.blockId = this.dataset.blockId;
this.linkHref = `plugins/${this.plugin.name}/index.css`;
this.linkHref = `plugins/${this.plugin.name}/index.css?v=${manifest.version}`;

this.shadowRoot = this.attachShadow({ mode: "open" });
}
Expand Down
2 changes: 2 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export default {
JUPYTER_UNKNOWN_VALUE: "unknown", // 未知值
JUPYTER_LAST_RUN_TIME_FORMAT: "YYYY-MM-DD HH:mm:ss.SSS", // 上次运行时间格式
JUPYTER_RUNTIME_FORMAT: "HH:mm:ss.SSS", // 运行用时格式
JUPYTER_CODE_CELL_ACTION_RUN_CLASS_NAME: "protyle-action__jupyter-client-code-cell-run", // 代码单元格运行按钮类名
JUPYTER_NOTEBOOK_BUTTON_MENU_CLASS_NAME: "protyle-breadcrumb__jupyter-client-notebook-menu", // 笔记本菜单按钮类名
attrs: { // 块属性
kernel: {
/**
Expand Down
Loading

0 comments on commit 74b42d2

Please sign in to comment.