Skip to content

[BUG] TypeError: '<' not supported between instances of 'str' and 'int' across multiple queries for multiple notebooks #428

@characode

Description

@characode

Describe the bug
Any query that is run, error TypeError: '<' not supported between instances of 'str' and 'int'

To Reproduce
Steps to reproduce the behavior:

  1. Notebook > run query
    %%gremlin g.V().count()
  2. See error
    `

TypeError Traceback (most recent call last)
~/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/graph_notebook/magics/graph_magic.py in gremlin(self, line, cell, local_ns)
969 scrollCollapse=gremlin_scrollCollapse,
970 lengthMenu=[final_pagination_options, final_pagination_menu],
--> 971 pageLength=visible_results
972 )
973 else: # Explain/Profile

~/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/itables/javascript.py in show(df, caption, **kwargs)
386 def show(df=None, caption=None, **kwargs):
387 """Show a dataframe"""
--> 388 html = to_html_datatable(df, caption=caption, connected=_CONNECTED, **kwargs)
389 display(HTML(html))

~/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/itables/javascript.py in to_html_datatable(df, caption, tableId, connected, **kwargs)
229 # Only display the table if the rows fit on one 'page'
230 if "dom" not in kwargs and len(df) <= 10: # the default page has 10 rows
--> 231 if "lengthMenu" not in kwargs or len(df) <= min(kwargs["lengthMenu"]):
232 kwargs["dom"] = "t"
233

TypeError: '<' not supported between instances of 'str' and 'int'
`

Expected behavior
Query should return results

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MAC 13.0.1
  • Browser chrome
  • Version 109.0.5414.87
    Screenshot 2023-01-16 at 9 33 40 AM

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions