Show More
@@ -20,6 +20,8 b'' | |||
|
20 | 20 | "from IPython.nbconvert import get_export_names, export_by_name\n", |
|
21 | 21 | "from IPython.nbconvert.writers import FilesWriter\n", |
|
22 | 22 | "from IPython.nbformat import current" |
|
23 | "from IPython.nbconvert.utils.exceptions import ConversionException\n", | |
|
24 | ||
|
23 | 25 | ], |
|
24 | 26 | "language": "python", |
|
25 | 27 | "metadata": {}, |
@@ -151,7 +153,7 b'' | |||
|
151 | 153 | " download_link.value = \"<br>Results: <a href='files/{filename}'><i>\\\"{filename}\\\"</i></a>\".format(filename=write_results)\n", |
|
152 | 154 | " download_link.visible = True\n", |
|
153 | 155 | " \n", |
|
154 | "def handle_export():\n", | |
|
156 | "def handle_export(widget):\n", | |
|
155 | 157 | " with open(filename, 'r') as f:\n", |
|
156 | 158 | " export(filename, current.read(f, 'json'))\n", |
|
157 | 159 | "export_button.on_click(handle_export)" |
@@ -183,4 +185,4 b'' | |||
|
183 | 185 | "metadata": {} |
|
184 | 186 | } |
|
185 | 187 | ] |
|
186 | } No newline at end of file | |
|
188 | } |
General Comments 0
You need to be logged in to leave comments.
Login now