Skip to content

Commit 9424339

Browse files
authored
Update for JupyterLab version 2 and 3
Made change to datadir and window.Jupyter_VPython to remove leading dot before directory /static so that it works in JupyterLab 2 and 3.
1 parent c772c25 commit 9424339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labextension/vpython/src/glowcommlab.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export function setupWebsocket(msg,serviceUrl) {
8383
wscheckfontsloaded(msg,serviceUrl)
8484
}
8585

86-
var datadir = './static/lab/vpython_data/'
87-
window.Jupyter_VPython = "./static/lab/vpython_data/" // prefix used by glow.min.js for textures
86+
var datadir = '/static/lab/vpython_data/'
87+
window.Jupyter_VPython = "/static/lab/vpython_data/" // prefix used by glow.min.js for textures
8888

8989
function fontloading() {
9090
"use strict";

0 commit comments

Comments
 (0)