Updated Neo4j-Cytoscape integration examples for ipycytoscape #353
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This pull request updates the example notebook for integrating Neo4j with
ipycytoscape
. The updates address compatibility with the official Neo4j Python driver and ensure functionality within modern Jupyter environments. This is designed to help the Cytoscape community by improving reliability and readability, with a focus on reusable retrieval, conversion, and visualization functions.Key Changes
Transition to Official Neo4j Python Driver:
py2neo
with the official Neo4j Python driver to ensure compatibility and maintainability.try/finally
).Enhanced Tooltip Functionality:
Reusable Helper Functions:
query_to_subgraph
for converting Neo4j query results toipycytoscape
-compatible JSON.fetch_and_visualize
for consistent visualization, reducing redundancy across examples.Updated Styles and Layouts:
dagre
,concentric
,klay
, andcola
).Notebook Modernization:
Examples in the Notebook
Why This is Useful
This update simplifies Neo4j-Cytoscape workflows, making it easier for users to:
ipycytoscape
.How to Test