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

[BUG] Broken Graph visualization in Jupyterlab #714

Closed
vgrangep opened this issue Nov 1, 2024 · 2 comments · Fixed by #716
Closed

[BUG] Broken Graph visualization in Jupyterlab #714

vgrangep opened this issue Nov 1, 2024 · 2 comments · Fixed by #716
Labels
bug Something isn't working

Comments

@vgrangep
Copy link

vgrangep commented Nov 1, 2024

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
Visualization of the gremlins graph query fails in JupyterLab. there are Js errors in the Console.

  • OS: macOS Sonoma 14.6.1
  • Chip: M1 max
  • Browser: Chrome
  • Graph Notebook Version: graph-notebook 4.6.1
  • Graph Database & Version: Neptune 1.2.0.2
    --

To Reproduce
Using the main branch of the project: https://github.com/aws/graph-notebook
Following the install procedure:

  • using Python 3.9.10

  • manual creation of a virtualenv and installation of dependencies using the provided requirements file
    pip install -r requirements.txt

  • install of the graph-notebook package with pip
    pip install graph-notebook

  • install of jupyter lab with version constraints using the provided command:
    pip install "jupyterlab>=3,<4"

  • connect to the database and run a gremlin query:

%%gremlin
g.V().limit(10).path().by(elementMap())

Gremlin queries are processed correctly
03ecdcf0-f38c-4455-8541-144624876d6d
But visualization is missing
ec3321bb-cf44-494d-a637-4ce3743396e0

  • js error in the console:
    90b6ecd7-5ba1-4769-a664-d16634f6c2df

Expected behavior
A visual representation the graph subquery as it used to be displayed
Screenshot 2024-11-01 at 4 00 47 PM

@vgrangep vgrangep added the bug Something isn't working label Nov 1, 2024
@michaelnchin
Copy link
Member

michaelnchin commented Nov 9, 2024

@vgrangep, thank you for the bug report!

I was able to reproduce this locally. It looks like the most recent version of our jupyterlab-widgets dependency (1.1.11) expects JupyterLab 4, and breaks the widget.

We'll include a version pin fix in the next release. In meantime, please include the following in your installation process:

pip install "jupyterlab-widgets<=1.1.10"

@vgrangep
Copy link
Author

This is working fine. Thanks for your help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants