Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to ITables 2.x #601

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd
- Improved handling of mixed type Gremlin results ([Link to PR](https://github.com/aws/graph-notebook/pull/592))
- Upgraded `rdflib` to 7.0.0 and `SPARQLWrapper` to 2.0.0 ([Link to PR](https://github.com/aws/graph-notebook/pull/596))
- Upgraded `requests` to 2.32.x ([Link to PR](https://github.com/aws/graph-notebook/pull/600))
- Upgraded `itables` to 2.x ([Link to PR](https://github.com/aws/graph-notebook/pull/601))
- Fixed formatting of query magic `--help` entries listing valid inputs ([Link to PR](https://github.com/aws/graph-notebook/pull/593))
- Fixed endpoint creation bug in People-Analytics-using-Neptune-ML sample ([Link to PR](https://github.com/aws/graph-notebook/pull/595))
- Fixed deprecated usage of Pandas `DataFrameGroupBy.mean` in NeptuneML SPARQL utils ([Link to PR](https://github.com/aws/graph-notebook/pull/596))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ setuptools>=65.5.1,<=66.0.0
nbconvert>=6.3.0,<=7.2.8
jedi>=0.18.1,<=0.18.2
markupsafe<2.1.0
itables>=1.0.0,<=1.5.2,!=1.4.3,!=1.4.4
itables>=2.0.0,<=2.1.0
pandas>=1.3.5,<=1.5.3
numpy<1.24.0
nest_asyncio>=1.5.5,<=1.5.6
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_version():
'ipyfilechooser==0.6.0',
'nbconvert>=6.3.0,<=7.2.8',
'jedi>=0.18.1,<=0.18.2',
'itables>=1.0.0,<=1.5.2,!=1.4.3,!=1.4.4',
'itables>=2.0.0,<=2.1.0',
'pandas>=1.3.5,<=1.5.3',
'numpy<1.24.0',
'nest_asyncio>=1.5.5,<=1.5.6'
Expand Down
10 changes: 7 additions & 3 deletions src/graph_notebook/magics/graph_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,8 @@ def sparql(self, line='', cell='', local_ns: dict = None):
paging=sparql_paging,
scrollCollapse=sparql_scrollCollapse,
lengthMenu=[final_pagination_options, final_pagination_menu],
pageLength=visible_results
pageLength=visible_results,
buttons=["pageLength"]
)
elif first_tab_html != "":
with first_tab_output:
Expand Down Expand Up @@ -1267,7 +1268,8 @@ def gremlin(self, line, cell, local_ns: dict = None):
paging=gremlin_paging,
scrollCollapse=gremlin_scrollCollapse,
lengthMenu=[final_pagination_options, final_pagination_menu],
pageLength=visible_results
pageLength=visible_results,
buttons=["pageLength"]
)
else: # Explain/Profile
display(HTML(first_tab_html))
Expand Down Expand Up @@ -2236,6 +2238,7 @@ def load_ids(self, line, local_ns: dict = None):
scrollCollapse=True,
lengthMenu=[DEFAULT_PAGINATION_OPTIONS, DEFAULT_PAGINATION_MENU],
pageLength=10,
buttons=["pageLength"]
)

with raw_output:
Expand Down Expand Up @@ -3263,7 +3266,8 @@ def handle_opencypher_query(self, line, cell, local_ns):
paging=oc_paging,
scrollCollapse=oc_scrollCollapse,
lengthMenu=[final_pagination_options, final_pagination_menu],
pageLength=visible_results
pageLength=visible_results,
buttons=["pageLength"]
)
elif first_tab_html != "":
with first_tab_output:
Expand Down
Loading