Skip to content

Commit c08de64

Browse files
authored
Launch config for vscode to debug in editor. (#44)
1 parent f703938 commit c08de64

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

.vscode/launch.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "jlab backend",
6+
"type": "debugpy",
7+
"request": "launch",
8+
"args": [
9+
"--no-browser",
10+
"--NotebookApp.token=''",
11+
"--port=9999"
12+
],
13+
"cwd": "${workspaceFolder}/playground",
14+
"justMyCode": false,
15+
"module": "jupyterlab.labapp",
16+
"presentation": {
17+
"hidden": true
18+
}
19+
},
20+
{
21+
"name": "jlab backend (watch)",
22+
"type": "debugpy",
23+
"request": "launch",
24+
"args": [
25+
"--watch",
26+
"--no-browser",
27+
"--NotebookApp.token=''",
28+
"--port=9999"
29+
],
30+
"justMyCode": false,
31+
"module": "jupyterlab.labapp",
32+
"presentation": {
33+
"hidden": true
34+
}
35+
},
36+
{
37+
"name": "jlab frontend",
38+
"type": "chrome",
39+
"request": "launch",
40+
"timeout": 180000,
41+
"url": "http://localhost:9999",
42+
// set webroot to the parent dir of your project's top level package.json
43+
"webRoot": "${workspaceFolder}",
44+
"presentation": {
45+
"hidden": true
46+
}
47+
}
48+
],
49+
"compounds": [
50+
{
51+
"name": "jlab debug",
52+
"configurations": ["jlab backend", "jlab frontend"]
53+
},
54+
{
55+
"name": "jlab debug (watch)",
56+
"configurations": ["jlab backend (watch)", "jlab frontend"]
57+
}
58+
]
59+
}

playground/rtc-notebook.ipynb

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "65aba98b-ce3f-406e-9534-f053c8cb947c",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"print(\"Hello World!\")"
11+
]
12+
},
13+
{
14+
"cell_type": "code",
15+
"execution_count": null,
16+
"id": "15bb3eed-8cef-4b64-a9af-188b5742214d",
17+
"metadata": {},
18+
"outputs": [],
19+
"source": [
20+
"import time\n",
21+
"\n",
22+
"for step in range(1, 11):\n",
23+
" print(f\"This is step: {step}\")\n",
24+
" time.sleep(2)"
25+
]
26+
},
27+
{
28+
"cell_type": "code",
29+
"execution_count": null,
30+
"id": "bb01aec7-1e4f-4fbc-8fcc-1d0374368327",
31+
"metadata": {},
32+
"outputs": [],
33+
"source": []
34+
}
35+
],
36+
"metadata": {
37+
"kernelspec": {
38+
"display_name": "Python 3 (ipykernel)",
39+
"language": "python",
40+
"name": "python3"
41+
},
42+
"language_info": {
43+
"codemirror_mode": {
44+
"name": "ipython",
45+
"version": 3
46+
},
47+
"file_extension": ".py",
48+
"mimetype": "text/x-python",
49+
"name": "python",
50+
"nbconvert_exporter": "python",
51+
"pygments_lexer": "ipython3",
52+
"version": "3.13.3"
53+
}
54+
},
55+
"nbformat": 4,
56+
"nbformat_minor": 5
57+
}

0 commit comments

Comments
 (0)