Skip to content

Commit 30b7e17

Browse files
authored
Fix workspace (#270)
1 parent b60e1d7 commit 30b7e17

File tree

3 files changed

+128
-90
lines changed

3 files changed

+128
-90
lines changed

binder/jupyterlab-workspace.json

Lines changed: 126 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,133 @@
11
{
2-
"data": {
3-
"file-browser-filebrowser:cwd": {
4-
"path": ""
5-
},
6-
"dask-dashboard-launcher:individual-progress": {
7-
"data": {
8-
"route": "individual-progress",
9-
"label": "Progress"
10-
}
11-
},
12-
"dask-dashboard-launcher:individual-task-stream": {
13-
"data": {
14-
"route": "individual-task-stream",
15-
"label": "Task Stream"
16-
}
17-
},
18-
"layout-restorer:data": {
19-
"main": {
20-
"dock": {
21-
"type": "split-area",
22-
"orientation": "horizontal",
23-
"sizes": [
24-
0.5,
25-
0.5
26-
],
27-
"children": [
28-
{
29-
"type": "tab-area",
30-
"currentIndex": 0,
31-
"widgets": [
32-
"notebook:00_overview.ipynb"
33-
]
34-
},
35-
{
36-
"type": "split-area",
37-
"orientation": "vertical",
38-
"sizes": [
39-
0.5,
40-
0.5
41-
],
42-
"children": [
43-
{
44-
"type": "tab-area",
45-
"currentIndex": 0,
46-
"widgets": [
47-
"dask-dashboard-launcher:individual-task-stream"
48-
]
2+
"data": {
3+
"file-browser-filebrowser:cwd": {
4+
"path": ""
5+
},
6+
"layout-restorer:data": {
7+
"main": {
8+
"dock": {
9+
"type": "split-area",
10+
"orientation": "horizontal",
11+
"sizes": [
12+
0.5,
13+
0.5
14+
],
15+
"children": [
16+
{
17+
"type": "tab-area",
18+
"currentIndex": 1,
19+
"widgets": [
20+
"notebook:00_overview.ipynb"
21+
]
22+
},
23+
{
24+
"type": "split-area",
25+
"orientation": "vertical",
26+
"sizes": [
27+
0.5,
28+
0.5
29+
],
30+
"children": [
31+
{
32+
"type": "tab-area",
33+
"currentIndex": 0,
34+
"widgets": [
35+
"dask-dashboard-launcher:/individual-task-stream"
36+
]
37+
},
38+
{
39+
"type": "split-area",
40+
"orientation": "horizontal",
41+
"sizes": [
42+
0.5,
43+
0.5
44+
],
45+
"children": [
46+
{
47+
"type": "tab-area",
48+
"currentIndex": 0,
49+
"widgets": [
50+
"dask-dashboard-launcher:/individual-progress"
51+
]
52+
},
53+
{
54+
"type": "tab-area",
55+
"currentIndex": 0,
56+
"widgets": [
57+
"dask-dashboard-launcher:/individual-workers-memory"
58+
]
59+
}
60+
]
61+
}
62+
]
63+
}
64+
]
4965
},
50-
{
51-
"type": "tab-area",
52-
"currentIndex": 0,
53-
"widgets": [
54-
"dask-dashboard-launcher:individual-progress"
55-
]
56-
}
57-
]
66+
"current": "notebook:00_overview.ipynb"
67+
},
68+
"down": {
69+
"size": 0,
70+
"widgets": []
71+
},
72+
"left": {
73+
"collapsed": false,
74+
"current": "dask-dashboard-launcher",
75+
"widgets": [
76+
"filebrowser",
77+
"running-sessions",
78+
"dask-dashboard-launcher",
79+
"@jupyterlab/toc:plugin",
80+
"extensionmanager.main-view"
81+
]
82+
},
83+
"right": {
84+
"collapsed": true,
85+
"widgets": [
86+
"jp-property-inspector",
87+
"debugger-sidebar"
88+
]
89+
},
90+
"relativeSizes": [
91+
0.14820850561134083,
92+
0.8517914943886592,
93+
0
94+
]
95+
},
96+
"notebook:00_overview.ipynb": {
97+
"data": {
98+
"path": "00_overview.ipynb",
99+
"factory": "Notebook"
58100
}
59-
]
60101
},
61-
"mode": "multiple-document",
62-
"current": "notebook:00_overview.ipynb"
63-
},
64-
"left": {
65-
"collapsed": false,
66-
"current": "filebrowser",
67-
"widgets": [
68-
"filebrowser",
69-
"running-sessions",
70-
"dask-dashboard-launcher",
71-
"command-palette",
72-
"tab-manager"
73-
]
74-
},
75-
"right": {
76-
"collapsed": true,
77-
"widgets": []
78-
}
79-
},
80-
"dask-dashboard-launcher": {
81-
"url": "DASK_DASHBOARD_URL",
82-
"cluster": ""
102+
"dask-dashboard-launcher:/individual-task-stream": {
103+
"data": {
104+
"route": "/individual-task-stream",
105+
"label": "Task Stream",
106+
"key": "Task Stream"
107+
}
108+
},
109+
"dask-dashboard-launcher:/individual-progress": {
110+
"data": {
111+
"route": "/individual-progress",
112+
"label": "Progress",
113+
"key": "Progress"
114+
}
115+
},
116+
"dask-dashboard-launcher:/individual-workers-memory": {
117+
"data": {
118+
"route": "/individual-workers-memory",
119+
"label": "Workers Memory",
120+
"key": "Workers Memory"
121+
}
122+
},
123+
"dask-dashboard-launcher": {
124+
"url": "DASK_DASHBOARD_URL",
125+
"cluster": ""
126+
}
83127
},
84-
"notebook:00_overview.ipynb": {
85-
"data": {
86-
"path": "00_overview.ipynb",
87-
"factory": "Notebook"
88-
}
128+
"metadata": {
129+
"id": "default",
130+
"last_modified": "2022-10-27T18:31:51.619821+00:00",
131+
"created": "2022-10-27T18:31:51.619821+00:00"
89132
}
90-
},
91-
"metadata": {
92-
"id": "/lab"
93-
}
94133
}

binder/postBuild

Lines changed: 0 additions & 2 deletions
This file was deleted.

binder/start

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/bash
22

33
# Replace DASK_DASHBOARD_URL with the proxy location
4-
sed -i -e "s|DASK_DASHBOARD_URL|/user/${JUPYTERHUB_USER}/proxy/8787|g" binder/jupyterlab-workspace.json
4+
sed -i -e "s|DASK_DASHBOARD_URL|${JUPYTERHUB_BASE_URL}user/${JUPYTERHUB_USER}/proxy/8787|g" binder/jupyterlab-workspace.json
55
export DASK_DISTRIBUTED__DASHBOARD__LINK="${JUPYTERHUB_SERVICE_PREFIX}proxy/{port}/status"
66

77
# Import the workspace
88
jupyter lab workspaces import binder/jupyterlab-workspace.json
9+
910
export DASK_TUTORIAL_SMALL=1
1011

1112
exec "$@"

0 commit comments

Comments
 (0)