-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
409 lines (409 loc) · 16.2 KB
/
package.json
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
{
"name": "ipython",
"displayName": "ipython",
"description": "IPython integration supporting direct interactive usage and commands.",
"icon": "md_img/icon.png",
"version": "2024.3.0",
"publisher": "HoangKimLai",
"repository": {
"type": "git",
"url": "https://github.com/hoangKnLai/vscode-ipython"
},
"engines": {
"vscode": "^1.81.0"
},
"keywords": [
"python",
"IPython"
],
"categories": [
"Programming Languages",
"Other",
"Data Science",
"Notebooks"
],
"extensionDependencies": [
"ms-python.python"
],
"activationEvents": [
"onLanguage:python"
],
"main": "./out/extension.js",
"capabilities": {
"virtualWorkspaces": true
},
"contributes": {
"configuration": {
"title": "IPython",
"properties": {
"ipython.navigatorLanguageId": {
"type": "array",
"default": [
"python",
"typescript",
"javascript",
"markdown"
],
"markdownDescription": "[Language identifier](https://code.visualstudio.com/docs/languages/identifiers) navigator to operates on"
},
"ipython.navigatorTrackingOption": {
"type": "string",
"enum": [
"visible",
"opened"
],
"default": "visible",
"markdownEnumDescriptions": [
"Only show sections of VISIBLE documents of navigatorLanguageId",
"Show sections of ALL opened documents of navigatorLanguageId"
]
},
"ipython.SectionLevelTag": {
"type": "string",
"default": "-",
"markdownDescription": "Indent level tag after a SectionTag like `# %% - Heading 1` to increase heading level by +1"
},
"ipython.SectionTag": {
"type": "array",
"default": [
"# %%",
"// ==",
"/(^(#)#+)+/"
],
"markdownDescription": "A tag or regular expression to identify line as start of a section. E.g., `# %%` for Jupyter style or `(^(#)#+)+` for markdown 2nd level heading and lower."
},
"ipython.workFolderBase": {
"type": "string",
"default": "",
"markdownDescription": "A folder to be used by this extension. \nDefault: `${HOME}`. NOTE: temporary `files` are placed in `${workFolderBase}/.vscode/ipython/`."
},
"ipython.LaunchArguments": {
"type": "string",
"default": "--no-autoindent",
"markdownDescription": "Input command to `ipython` call on launch (e.g. `--matplotlib=qt5`)"
},
"ipython.StartupCommands": {
"type": "array",
"default": [
"%load_ext autoreload",
"%autoreload 2"
],
"markdownDescription": "List of commands to execute line-by-line after launching IPython terminal (e.g., `['%load_ext autoreload', '%autoreload 2']`)."
},
"ipython.ExecutionLagMilliSec": {
"type": "number",
"default": 64,
"markdownDescription": "Millisecond delay between each code execution. Helps with race condition when sending text to IPython `stdin` shell."
},
"ipython.RunCodeBlockMethod": {
"type": "string",
"enum": [
"%load",
"%run -i"
],
"default": "%run -i",
"markdownEnumDescriptions": [
"(DEPRECATED to just `%run -i` in a future release) Use `%load ` to send code to terminal and then execute",
"Write code block (section, multi-selections) to `{workFolder}/code.py`, then execute using `%run -i code.py`. NOTE: open `code.py` to see exact code executed."
]
},
"ipython.RunArguments": {
"type": "string",
"default": "-t",
"markdownDescription": "Run arguments `run-args` equivalent to `%run run-args file.py`. More detail in [`%run` documentation](https://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-run)"
},
"ipython.CommandLineArguments": {
"type": "string",
"default": "",
"markdownDescription": "Command line input arguments `cli-args` equivalent to `python file.py cli-args`"
}
}
},
"commands": [
{
"category": "IPython",
"command": "ipython.moveToSectionTagAbove",
"title": "Move Cursor to Section Tag Above"
},
{
"category": "IPython",
"command": "ipython.moveToSectionTagBelow",
"title": "Move Cursor to Section Tag Below"
},
{
"category": "IPython",
"command": "ipython.createTerminal",
"title": "Create an IPython Terminal"
},
{
"category": "IPython",
"command": "ipython.createDedicatedTerminal",
"title": "Create a Dedicated IPython Terminal for Current Active Python File"
},
{
"category": "IPython",
"command": "ipython.createDedicatedTerminalInFileDir",
"title": "Create a Dedicated IPython Terminal with its Current Directory the Active Python File Directory"
},
{
"category": "IPython",
"command": "ipython.runFile",
"title": "Run File in an IPython Terminal"
},
{
"category": "IPython",
"command": "ipython.runFileInDedicatedTerminal",
"title": "Create Dedicated Terminal and Run File"
},
{
"category": "IPython",
"command": "ipython.runFileWithArgs",
"title": "Run File with Run Arguments"
},
{
"category": "IPython",
"command": "ipython.runFileWithCli",
"title": "Run File with Command Line Arguments"
},
{
"category": "IPython",
"command": "ipython.runFileWithArgsCli",
"title": "Run File with Run and Command Line Arguments"
},
{
"category": "IPython",
"command": "ipython.runSelections",
"title": "Run Code Selection(s) or Line at each Cursor"
},
{
"category": "IPython",
"command": "ipython.runLineAndAdvance",
"title": "Run Code on current line and advance to next line"
},
{
"category": "IPython",
"command": "ipython.runSection",
"title": "Run Section Block of Code"
},
{
"category": "IPython",
"command": "ipython.naviRunSection",
"enablement": "view == ipyNavigator && viewItem == runableSection",
"shortTitle": "Run",
"icon": "$(run)",
"title": "Run Section"
},
{
"category": "IPython",
"command": "ipython.naviRunToSection",
"enablement": "view == ipyNavigator && viewItem == runableSection",
"shortTitle": "Run to",
"icon": "$(run-above)",
"title": "Run All Above Sections and this Section"
},
{
"category": "IPython",
"command": "ipython.naviRunFromSection",
"enablement": "view == ipyNavigator && viewItem == runableSection",
"shortTitle": "Run from",
"icon": "$(run-below)",
"title": "Run this Section and All Sections Below"
},
{
"category": "IPython",
"command": "ipython.naviRunFile",
"shortTitle": "Run File",
"enablement": "view == ipyNavigator && viewItem == runableFile",
"icon": "$(run-all)",
"title": "Run File"
},
{
"category": "IPython",
"command": "ipython.naviJumpToSection",
"shortTitle": "Jump",
"icon": "$(arrow-circle-right)",
"title": "Jump to ..."
},
{
"category": "IPython",
"command": "ipython.runSectionAndMoveToNext",
"title": "Run Section and Move to Next Section"
},
{
"category": "IPython",
"command": "ipython.runToLine",
"title": "Run From Line 1 to Current Line"
},
{
"category": "IPython",
"command": "ipython.runFromLine",
"title": "Run From Current Line to Last Line"
},
{
"category": "IPython",
"command": "ipython.runToSection",
"title": "Run From Line 1 to End of Current Section"
},
{
"category": "IPython",
"command": "ipython.runFromSection",
"title": "Run From Start of Section to End of File"
}
],
"keybindings": [
{
"command": "ipython.moveToSectionTagAbove",
"key": "alt+k",
"when": "ipython.isUse && editorTextFocus && editorLangId == python"
},
{
"command": "ipython.moveToSectionTagBelow",
"key": "alt+j",
"when": "ipython.isUse && editorTextFocus && editorLangId == python"
},
{
"command": "ipython.createTerminal",
"key": "ctrl+shift+i c",
"when": "ipython.isUse"
},
{
"command": "ipython.createDedicatedTerminal",
"key": "ctrl+shift+i shift+c",
"when": "ipython.isUse"
},
{
"command": "ipython.createDedicatedTerminalInFileDir",
"key": "ctrl+shift+i ctrl+shift+c",
"when": "ipython.isUse"
},
{
"command": "ipython.runFileWithCli",
"key": "f5",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && editorLangId == python"
},
{
"command": "ipython.runFileInDedicatedTerminal",
"key": "ctrl+shift+i f5",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && editorLangId == python"
},
{
"command": "ipython.runFileWithArgsCli",
"key": "shift+f5",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && editorLangId == python"
},
{
"command": "ipython.runSelections",
"key": "f9",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && !findInputFocussed && !replaceInputFocussed && editorLangId == python"
},
{
"command": "ipython.runSection",
"key": "alt+enter",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && editorLangId == python"
},
{
"command": "ipython.runSectionAndMoveToNext",
"key": "shift+alt+enter",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && !notebookEditorFocused && editorLangId == python"
},
{
"command": "ipython.runToLine",
"key": "ctrl+shift+i l",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && !notebookEditorFocused && editorLangId == python"
},
{
"command": "ipython.runFromLine",
"key": "ctrl+shift+i shift+l",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && !notebookEditorFocused && editorLangId == python"
},
{
"command": "ipython.runToSection",
"key": "ctrl+shift+i k",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && !notebookEditorFocused && editorLangId == python"
},
{
"command": "ipython.runFromSection",
"key": "ctrl+shift+i shift+k",
"when": "ipython.isUse && !inDebugMode && editorTextFocus && !notebookEditorFocused && editorLangId == python"
},
{
"command": "workbench.view.extension.ipy-navigator",
"key": "ctrl+shift+i b",
"when": "ipython.isUse"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "ipy-navigator",
"title": "Code Navigator",
"icon": "icons/sectioned_snake.svg"
}
]
},
"views": {
"ipy-navigator": [
{
"id": "ipyNavigator",
"name": "Sections",
"icon": "media/sectioned_snake.svg",
"contextualTitle": "Navigation and Execution"
}
]
},
"menus": {
"view/item/context": [
{
"command": "ipython.naviRunSection",
"when": "view == ipyNavigator && viewItem == runableSection",
"group": "inline@1"
},
{
"command": "ipython.naviRunToSection",
"when": "view == ipyNavigator && viewItem == runableSection",
"group": "inline@2"
},
{
"command": "ipython.naviRunFromSection",
"when": "view == ipyNavigator && viewItem == runableSection",
"group": "inline@3"
},
{
"command": "ipython.naviRunFile",
"when": "view == ipyNavigator && viewItem == runableFile",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"dependencies": {
"@types/vscode": "^1.81.0",
"@vscode/python-extension": "^1.0.5"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "^14.18.58",
"@types/vscode": "^1.81.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@vscode/test-electron": "^1.6.2",
"esbuild": "^0.19.2",
"eslint": "^7.32.0",
"glob": "^7.2.3",
"mocha": "^9.2.2",
"typescript": "^4.9.5"
}
}