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