Show More
@@ -37,8 +37,8 b' var IPython = (function (IPython) {' | |||||
37 | var reader = new FileReader(); |
|
37 | var reader = new FileReader(); | |
38 | reader.readAsText(f); |
|
38 | reader.readAsText(f); | |
39 | var fname = f.name.split('.'); |
|
39 | var fname = f.name.split('.'); | |
40 |
var nbname = fname |
|
40 | var nbname = fname.slice(0,-1).join('.'); | |
41 |
var nbformat = fname[ |
|
41 | var nbformat = fname.slice(-1)[0]; | |
42 | if (nbformat === 'ipynb') {nbformat = 'json';}; |
|
42 | if (nbformat === 'ipynb') {nbformat = 'json';}; | |
43 | if (nbformat === 'py' || nbformat === 'json') { |
|
43 | if (nbformat === 'py' || nbformat === 'json') { | |
44 | var item = that.new_notebook_item(0); |
|
44 | var item = that.new_notebook_item(0); |
General Comments 0
You need to be logged in to leave comments.
Login now