Skip to content

[BUG] Graph tab missing | Only properties are displayed on Console and JSON tabs | JSON parseError without bolt #557

Open
@yannramusat

Description

@yannramusat

Community Note

  • Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Describe the bug

  • Visualizations fail to render for openCypher queries in Jupyter Lab. The graph tab is missing.
    No JS error in the console.

  • Moreover outputs of queries only print properties, not labels and ids, e.g.:

%%oc bolt
MATCH (n)
RETURN n
LIMIT 2

returns only this in the JSON tab:

[
  {
    "n": {
      "tagline": "Welcome to the Real World",
      "title": "The Matrix",
      "released": 1999
    }
  },
  {
    "n": {
      "born": 1964,
      "name": "Keanu Reeves"
    }
  }
]
  • When connecting through HTTP, the result of running a query is a parsing error:
%%oc 
MATCH (n)
RETURN n
LIMIT 2

returns

['{"header":{"fields":["n"]}}', '{"data":[{"()":[0,["Movie"],{"tagline":"Welcome', 'to', 'the', 'Real', 'World","title":"The', 'Matrix","released":1999}]}]}', '{"data":[{"()":[1,["Person"],{"born":1964,"name":"Keanu', 'Reeves"}]}]}', '{"data":[{"()":[2,["Person"],{"born":1967,"name":"Carrie-Anne', 'Moss"}]}]}', '{"data":[{"()":[3,["Person"],{"born":1961,"name":"Laurence', 'Fishburne"}]}]}', '{"data":[{"()":[4,["Person"],{"born":1960,"name":"Hugo', 'Weaving"}]}]}', '{"summary":{}}', '{"info":{"notifications":[{"code":"Neo.ClientNotification.Request.DeprecatedFormat","severity":"WARNING","title":"The', 'client', 'made', 'a', 'request', 'for', 'a', 'format', 'which', 'has', 'been', 'deprecated.","description":"The', 'requested', 'format', 'has', 'been', 'deprecated.', "('application/vnd.neo4j.jolt+json-seq'", 'and', "'application/vnd.neo4j.jolt-v1+json-seq'", 'have', 'been', 'deprecated', 'and', 'will', 'be', 'removed', 'in', 'a', 'future', 'version.', 'Please', 'use', '\'application/vnd.neo4j.jolt-v2+json-seq\'.)"}],"lastBookmarks":["FB:kcwQXbc1D4l0Rj6qgaNyzFayiTOQ"]}}']
{'error': JSONDecodeError('Unterminated string starting at: line 1 column 40 (char 39)')}
    

Specs

  • OS: Arch Linux
  • Browser: Mozilla Firefox 121.0.1
  • Graph Notebook Version: 4.0.2
  • Graph Database & Version: Neo4j Community Edition 5.9.0 (but this is also the case with Neo4j Sandbox)
  • Python version 3.10.13
  • Jupyter version:
IPython          : 8.10.0
ipykernel        : 5.3.4
ipywidgets       : 7.7.2
jupyter_client   : 7.4.9
jupyter_core     : 5.7.1
jupyter_server   : 2.12.5
jupyterlab       : 3.6.7
nbclient         : 0.7.3
nbconvert        : 7.2.8
nbformat         : 5.9.2
notebook         : 6.5.6
qtconsole        : 5.5.1
traitlets        : 5.14.1

To Reproduce
Steps to reproduce the behavior: I strictly followed the instructions from the README.
The same behaviour is obtained through Jupyter notebooks and Jupyter lab.
The same behaviour is obtained with pip install graph-notebook or by building it from sources.

Expected behavior
The graph tab shows up and displays the graph.
In the Console or in the JSON tab, full node information are displayed.

Might this be of some help:

"notifications":[{"code":"Neo.ClientNotification.Request.DeprecatedFormat","severity":"WARNING","title":"The', 'client', 'made', 'a', 'request', 'for', 'a', 'format', 'which', 'has', 'been', 'deprecated.","description":"The', 'requested', 'format', 'has', 'been', 'deprecated.', "('application/vnd.neo4j.jolt+json-seq'", 'and', "'application/vnd.neo4j.jolt-v1+json-seq'", 'have', 'been', 'deprecated', 'and', 'will', 'be', 'removed', 'in', 'a', 'future', 'version.', 'Please', 'use', '\'application/vnd.neo4j.jolt-v2+json-seq\'.)"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    New issues/Needs triage or review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions