Skip to content

Commit 6acbfc7

Browse files
committed
Updated for Jupyter Notebook 7
1 parent 1f5c7a4 commit 6acbfc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpython/with_notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def find_free_port():
107107
display(Javascript("""if (typeof Jupyter !== "undefined") {require(["nbextensions/vpython_libraries/glowcomm"], function(){console.log("GLOWCOMM LOADED");});}else{element.textContent = ' ';}"""))
108108
display(Javascript("""if (typeof Jupyter !== "undefined") {require(["nbextensions/vpython_libraries/jquery-ui.custom.min"], function(){console.log("JQUERY LOADED");});}else{element.textContent = ' ';}"""))
109109

110-
if transfer:
110+
if transfer and (notebook.__version__ <= '6.5.5'):
111111
time.sleep(4) # allow some time for javascript code above to run after nbextensions update before attempting to setup Comm Channel
112112
else:
113113
time.sleep(2) # allow some time for javascript code above to run before attempting to setup Comm Channel

0 commit comments

Comments
 (0)