Skip to content

Commit 397ad3e

Browse files
committed
Add code-server-traitlet example.
1 parent daeb5aa commit 397ad3e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## code-server-traitlet
2+
3+
Create a code-server launcher [via traitlet](https://jupyter-server-proxy.readthedocs.io/en/latest/server-process.html#specifying-config-via-traitlets).
4+
5+
Via https://github.com/betatim/vscode-binder.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
c.ServerProxy.servers = {
2+
'code-server': {
3+
'command': [
4+
'code-server',
5+
'--no-auth',
6+
'--disable-telemetry',
7+
'--allow-http',
8+
'--port={port}'
9+
],
10+
'timeout': 20,
11+
'launcher_entry': {
12+
'title': 'VS Code'
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)