Skip to content

Commit adbc4ee

Browse files
authored
Updated for JupyterLab3 prebuilt extension
Updated datadir and window.Jupyter_VPython to work with JupyterLab3 prebuilt extension.
1 parent e479a08 commit adbc4ee

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

labextension/vpython/src/glowcommlab.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,13 @@ 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+
// Old datadir value for a source extension npm package. (used prior to JupyterLab 3.0)
87+
//var datadir = '/static/lab/vpython_data/'
88+
//window.Jupyter_VPython = "/static/lab/vpython_data/" // prefix used by glow.min.js for textures
89+
90+
// New datadir value for a prebuilt extension (new in JupyterLab 3.0)
91+
var datadir = '/lab/extensions/vpython/static/vpython_data/'
92+
window.Jupyter_VPython = "/lab/extensions/vpython/static/vpython_data/" // prefix used by glow.min.js for textures
8893

8994
function fontloading() {
9095
"use strict";

0 commit comments

Comments
 (0)