Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def parse_notebook(filter_options):
|
|
| 37 |
counter = 0
|
| 38 |
while not found_notebook:
|
| 39 |
counter+=1
|
| 40 |
-
print(counter)
|
| 41 |
notebook_data = next(ds_iter)
|
| 42 |
notebook_string = notebook_data["text"]
|
| 43 |
notebook_id = notebook_data["id"].split("/")[-1]
|
|
@@ -51,7 +51,7 @@ def parse_notebook(filter_options):
|
|
| 51 |
notebook_parsed = nbformat.reads(notebook_string, as_version=4)
|
| 52 |
(notebook_body, resources) = html_exporter.from_notebook_node(notebook_parsed)
|
| 53 |
if len(resources)>0:
|
| 54 |
-
found_notebook =
|
| 55 |
|
| 56 |
out_path = os.path.join(TMP_DIR, notebook_id)
|
| 57 |
|
|
|
|
| 37 |
counter = 0
|
| 38 |
while not found_notebook:
|
| 39 |
counter+=1
|
| 40 |
+
print(counter, filter_options)
|
| 41 |
notebook_data = next(ds_iter)
|
| 42 |
notebook_string = notebook_data["text"]
|
| 43 |
notebook_id = notebook_data["id"].split("/")[-1]
|
|
|
|
| 51 |
notebook_parsed = nbformat.reads(notebook_string, as_version=4)
|
| 52 |
(notebook_body, resources) = html_exporter.from_notebook_node(notebook_parsed)
|
| 53 |
if len(resources)>0:
|
| 54 |
+
found_notebook = True
|
| 55 |
|
| 56 |
out_path = os.path.join(TMP_DIR, notebook_id)
|
| 57 |
|