-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
154 lines (154 loc) · 5.68 KB
/
Copy pathpackage.json
File metadata and controls
154 lines (154 loc) · 5.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"name": "ipython-vscode",
"displayName": "IPython Console",
"description": "qtconsole 手感的 IPython 控制台(真实 ipykernel)",
"version": "1.5.0",
"publisher": "jiangsheng",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onWebviewPanel:ipythonConsole",
"onCommand:ipy.open",
"onCommand:ipy.runFile",
"onCommand:ipy.sendSelection",
"onCommand:ipy.changeOpenKeybinding",
"onCommand:ipy.changeSendKeybinding"
],
"main": "./extension.js",
"icon": "media/icon.png",
"contributes": {
"configuration": {
"title": "IPython Console",
"properties": {
"ipythonConsole.pythonPath": {
"type": "string",
"default": "",
"markdownDescription": "**内核解释器路径**(需已安装 ipykernel 与 jupyter_client)。留空自动探测:Anaconda 常见安装位置 → `python` / `python3`(Windows 下排除微软商店存根)。改后点工具栏「重启内核」生效。",
"scope": "window"
},
"ipythonConsole.workingDir": {
"type": "string",
"default": "",
"markdownDescription": "**IPython 运行目录**(内核的当前工作目录)。留空 = 使用 VS Code 当前打开的文件夹;也可填绝对路径(如 `/home/jiangsheng/data` 或 `C:/Users/me/data`)。改后点工具栏「重启内核」生效。",
"scope": "window"
},
"ipythonConsole.runMode": {
"type": "string",
"enum": [
"append",
"fresh"
],
"default": "append",
"markdownDescription": "**播放键(运行当前文件)的执行模式**:`append` = 接着跑(默认,保留变量与 import 缓存,直接注入当前内核);`fresh` = 从头跑(每次播放前重启内核,重置所有变量并重新加载 import)。也可在控制台工具栏「运行」下拉框切换。",
"scope": "machine"
},
"ipythonConsole.outputBackground": {
"type": "string",
"format": "color-hex",
"default": "",
"markdownDescription": "**输出区背景色**。留空 = 自动跟随当前主题:背景分级往白偏移——暗底微提亮 5% 成暗灰、中间浅色明显变淡 15%、近白大幅白化(与编辑器底色拉开差异),方向只有往白、绝不往深走;填写颜色值(如 `#282a36`)则固定使用。改后即时生效,无需重启内核。",
"scope": "machine"
},
"ipythonConsole.outputForeground": {
"type": "string",
"format": "color-hex",
"default": "",
"markdownDescription": "**输出区前景色**(代码、stdout、结果文字)。留空 = 自动:暗底配亮字、亮底配深字,保证可读(含对比度兜底);填写颜色值则固定使用。",
"scope": "machine"
},
"ipythonConsole.outputPromptIn": {
"type": "string",
"format": "color-hex",
"default": "",
"markdownDescription": "**In 提示符颜色**。留空 = 随主题明暗自动选色(保持 qtconsole 绿)。",
"scope": "machine"
},
"ipythonConsole.outputPromptOut": {
"type": "string",
"format": "color-hex",
"default": "",
"markdownDescription": "**Out 提示符颜色**。留空 = 随主题明暗自动选色(保持 qtconsole 蓝)。",
"scope": "machine"
},
"ipythonConsole.outputStderr": {
"type": "string",
"format": "color-hex",
"default": "",
"markdownDescription": "**stderr / traceback / 错误横幅颜色**。留空 = 随主题明暗自动选色。",
"scope": "machine"
},
"ipythonConsole.outputMuted": {
"type": "string",
"format": "color-hex",
"default": "",
"markdownDescription": "**次级说明文字颜色**(banner 提示、截断标记)。留空 = 随主题明暗自动选色。",
"scope": "machine"
}
}
},
"commands": [
{
"command": "ipy.open",
"title": "打开 IPython 控制台",
"category": "IPython Console",
"icon": "media/console.svg"
},
{
"command": "ipy.runFile",
"title": "运行当前文件到 IPython 控制台",
"category": "IPython Console",
"icon": "media/play.svg"
},
{
"command": "ipy.sendSelection",
"title": "发送选中/当前行到 IPython 控制台",
"category": "IPython Console"
},
{
"command": "ipy.changeOpenKeybinding",
"title": "更改快捷键:打开控制台",
"category": "IPython Console"
},
{
"command": "ipy.changeSendKeybinding",
"title": "更改快捷键:发送运行(编辑器 Shift+Enter)",
"category": "IPython Console"
}
],
"menus": {
"editor/title": [
{
"command": "ipy.open",
"group": "navigation",
"icon": "media/console.svg"
},
{
"command": "ipy.runFile",
"group": "navigation",
"icon": "media/play.svg"
}
],
"editor/context": [
{
"command": "ipy.sendSelection",
"group": "navigation@1"
}
]
},
"keybindings": [
{
"command": "ipy.open",
"key": "ctrl+alt+o"
},
{
"command": "ipy.sendSelection",
"key": "shift+enter",
"when": "editorTextFocus && !suggestWidgetVisible && !findWidgetVisible && !terminalFocus && !notebookEditorFocused && !inSnippetMode"
}
]
}
}