diff --git a/ChangeLog.md b/ChangeLog.md index 3e7a9f71..b811cbe5 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -9,6 +9,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd - Updated [`01-About-the-Neptune-Notebook`](https://github.com/aws/graph-notebook/blob/main/src/graph_notebook/notebooks/01-Getting-Started/01-About-the-Neptune-Notebook.ipynb) for openCypher ([Link to PR](https://github.com/aws/graph-notebook/pull/387)) - Fixed results not being displayed for SPARQL ASK queries ([Link to PR](https://github.com/aws/graph-notebook/pull/385)) - Fixed `%seed` failing to load SPARQL EPL dataset ([Link to PR](https://github.com/aws/graph-notebook/pull/389)) +- Fixed `%db_reset` status output not displaying in JupyterLab ([Link to PR](https://github.com/aws/graph-notebook/pull/391) - Fixed `%%gremlin` throwing error for result sets with multiple datatypes [Link to PR](https://github.com/aws/graph-notebook/pull/388)) - Fixed edge label creation in `02-Using-Gremlin-to-Access-the-Graph` ([Link to PR](https://github.com/aws/graph-notebook/pull/390)) - Bumped typescript to 4.1.x in graph_notebook_widgets ([Link to PR](https://github.com/aws/graph-notebook/pull/393)) diff --git a/src/graph_notebook/magics/graph_magic.py b/src/graph_notebook/magics/graph_magic.py index 26944844..f28cb339 100644 --- a/src/graph_notebook/magics/graph_magic.py +++ b/src/graph_notebook/magics/graph_magic.py @@ -1147,10 +1147,12 @@ def on_button_delete_clicked(b): job_status_output = widgets.Output() status_hbox = widgets.HBox([interval_output]) vbox = widgets.VBox([status_hbox, job_status_output]) - display(vbox) + with output: + display(vbox) last_poll_time = time.time() interval_check_response = {} + new_interval = True while retry > 0: time_elapsed = int(time.time() - last_poll_time) time_remaining = poll_interval - time_elapsed @@ -1159,8 +1161,7 @@ def on_button_delete_clicked(b): with interval_output: print('checking status...') job_status_output.clear_output() - with job_status_output: - display_html(HTML(loading_wheel_html)) + new_interval = True try: retry -= 1 status_res = self.client.status() @@ -1180,6 +1181,10 @@ def on_button_delete_clicked(b): return last_poll_time = time.time() else: + if new_interval: + with job_status_output: + display_html(HTML(loading_wheel_html)) + new_interval = False with interval_output: print(f'checking status in {time_remaining} seconds') time.sleep(1)