From a949ce2f1387f2926cc0808e7de388025a80ce8e Mon Sep 17 00:00:00 2001 From: Michael Chin Date: Thu, 13 Jun 2024 17:52:03 -0700 Subject: [PATCH 1/2] Fix alignment of numeric values in results table --- src/graph_notebook/magics/graph_magic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graph_notebook/magics/graph_magic.py b/src/graph_notebook/magics/graph_magic.py index 147b2c51..40cdce66 100644 --- a/src/graph_notebook/magics/graph_magic.py +++ b/src/graph_notebook/magics/graph_magic.py @@ -918,6 +918,7 @@ def sparql(self, line='', cell='', local_ns: dict = None): visible_results, final_pagination_options, final_pagination_menu = generate_pagination_vars( args.results_per_page) sparql_columndefs = [ + {"type": "string", "targets": "_all"}, {"width": "5%", "targets": 0}, {"visible": True, "targets": 0}, {"searchable": False, "targets": 0}, @@ -1300,6 +1301,7 @@ def gremlin(self, line, cell, local_ns: dict = None): visible_results, final_pagination_options, final_pagination_menu = generate_pagination_vars( args.results_per_page) gremlin_columndefs = [ + {"type": "string", "targets": "_all"}, {"width": "5%", "targets": 0}, {"visible": True, "targets": 0}, {"searchable": False, "targets": 0}, @@ -3411,6 +3413,7 @@ def handle_opencypher_query(self, line, cell, local_ns): visible_results, final_pagination_options, final_pagination_menu = generate_pagination_vars( args.results_per_page) oc_columndefs = [ + {"type": "string", "targets": "_all"}, {"width": "5%", "targets": 0}, {"visible": True, "targets": 0}, {"searchable": False, "targets": 0}, From e0ae9ea2e28d570bc5f78941757565bafb2dc604 Mon Sep 17 00:00:00 2001 From: Michael Chin Date: Thu, 13 Jun 2024 17:55:44 -0700 Subject: [PATCH 2/2] update changelog --- ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog.md b/ChangeLog.md index aabb474a..73adfb20 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -5,6 +5,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd ## Upcoming - Added `--connection-protocol` option to `%%gremlin` ([Link to PR](https://github.com/aws/graph-notebook/pull/617)) +- Restored left alignment of numeric value columns in results table widget ([Link to PR](https://github.com/aws/graph-notebook/pull/620)) ## Release 4.4.0 (June 10, 2024)