Show More
@@ -59,7 +59,8 b' var IPython = (function (IPython) {' | |||||
59 |
|
59 | |||
60 | MenuBar.prototype._nbconvert = function (format, download) { |
|
60 | MenuBar.prototype._nbconvert = function (format, download) { | |
61 | download = download || false; |
|
61 | download = download || false; | |
62 |
var notebook_ |
|
62 | var notebook_path = IPython.notebook.notebook_path; | |
|
63 | var notebook_name = IPython.notebook.notebook_name; | |||
63 | if (IPython.notebook.dirty) { |
|
64 | if (IPython.notebook.dirty) { | |
64 | IPython.notebook.save_notebook({async : false}); |
|
65 | IPython.notebook.save_notebook({async : false}); | |
65 | } |
|
66 | } | |
@@ -67,8 +68,8 b' var IPython = (function (IPython) {' | |||||
67 | this.base_url, |
|
68 | this.base_url, | |
68 | 'nbconvert', |
|
69 | 'nbconvert', | |
69 | format, |
|
70 | format, | |
70 |
|
|
71 | notebook_path, | |
71 |
notebook_name |
|
72 | notebook_name | |
72 | ) + "?download=" + download.toString(); |
|
73 | ) + "?download=" + download.toString(); | |
73 |
|
74 | |||
74 | window.open(url); |
|
75 | window.open(url); | |
@@ -103,7 +104,7 b' var IPython = (function (IPython) {' | |||||
103 | base_url, |
|
104 | base_url, | |
104 | 'files', |
|
105 | 'files', | |
105 | notebook_path, |
|
106 | notebook_path, | |
106 |
notebook_name |
|
107 | notebook_name | |
107 | ); |
|
108 | ); | |
108 | window.location.assign(url); |
|
109 | window.location.assign(url); | |
109 | }); |
|
110 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now