Skip to content

Commit 2eceed9

Browse files
committed
added version check >5.1.0 in main.js
1 parent 16da10e commit 2eceed9

File tree

1 file changed

+8
-1
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/export_embedded

1 file changed

+8
-1
lines changed

src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ define([
1515
}
1616

1717
var load_ipython_extension = function() {
18-
18+
19+
var v = Jupyter.version.split(".")
20+
if(Number(v[0])*10+ Number(v[1]) < 51)
21+
{
22+
console.log('Notebook version 5.1.0 or higher required for this extension')
23+
return
24+
}
25+
1926
/* Add an entry in the download menu */
2027
var dwm = $("#download_menu")
2128
var downloadEntry = $('<li id="download_html_embed"><a href="#">HTML Embedded (.html)</a></li>')

0 commit comments

Comments
 (0)