File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,14 @@ def find_free_port():
58
58
if jupyterlab .__version__ >= '0.35.0' :
59
59
from os .path import join
60
60
labextensions_dir = join (jupyterlab .commands .get_app_dir (), u'static' )
61
- try :
62
- notebook .nbextensions .install_nbextension (path = package_dir + "/vpython_data" ,
63
- nbextensions_dir = labextensions_dir ,
64
- overwrite = False ,
65
- verbose = 0 )
66
- except PermissionError :
67
- #logging.info("PermissionError: Unable to install /vpython_data directory and files for VPython on JupyterLab")
68
- pass
61
+ try :
62
+ notebook .nbextensions .install_nbextension (path = package_dir + "/vpython_data" ,
63
+ nbextensions_dir = labextensions_dir ,
64
+ overwrite = False ,
65
+ verbose = 0 )
66
+ except PermissionError :
67
+ #logging.info("PermissionError: Unable to install /vpython_data directory and files for VPython on JupyterLab")
68
+ pass
69
69
70
70
71
71
if 'nbextensions' in os .listdir (jd ):
@@ -107,9 +107,9 @@ def find_free_port():
107
107
display (Javascript ("""if (typeof Jupyter !== "undefined") {require(["nbextensions/vpython_libraries/jquery-ui.custom.min"], function(){console.log("JQUERY LOADED");});}else{element.textContent = ' ';}""" ))
108
108
109
109
if transfer :
110
- time .sleep (4 ) # allow some time for javascript code above to run after nbextensions update before attempting to setup Comm Channel
110
+ time .sleep (4 ) # allow some time for javascript code above to run after nbextensions update before attempting to setup Comm Channel
111
111
else :
112
- time .sleep (2 ) # allow some time for javascript code above to run before attempting to setup Comm Channel
112
+ time .sleep (2 ) # allow some time for javascript code above to run before attempting to setup Comm Channel
113
113
114
114
wsConnected = False
115
115
You can’t perform that action at this time.
0 commit comments