cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neo4Jupyter, is it still working?

Good Day people,

I am trying to display my neo4j nodes in Python(Jupyter Notebook) and I found Neo4jupyter but it's not working it either throws me an error or it displays a blank space. Can someone please confirm if it's still working or do we have an alternate if so can you provide a reference guide link or something.

The task I am trying to achieve is when a user passes a .csv file I have to do some ml stuffs and show the output nodes to the user. So here I have connected the neo4j with python and the cypher queries are run in Jupyter Notebook. The output is loaded to Neo4j, now I have to show those nodes to the user.

Thanks in advance.

1 REPLY 1

Hello!

Unsure if I can address the second part of your post without more specifics of your exact task. That being said, I can at least address the former part of your question regarding if Neo4jupyter working.

I went ahead and installed neo4jupyter and py2neo into a conda environment, launched a sandbox for the Movies graph and connected to jupyter notebook. It appears that the intended functionality of neo4jupyter is working as intended. Here is a block of code & associated output from my ipynb:

import getpass
import neo4jupyter
from py2neo import Graph

# init neo4jupyter within .ipynb to load javascript from module
neo4jupyter.init_notebook_mode()

# py2neo connection parameters
uri = "bolt://localhost:7687"
user = "neo4j"
pwd = getpass.getpass()

# define py2neo graph object -> graph
graph = Graph(uri, auth=(user, pwd))

# Below is ex. illustrated from docs -> https://github.com/merqurio/neo4jupyter
# neo4jupyter.draw(graph, options={"Label": "Property", …}, physics=True, limit=100)
neo4jupyter.draw(
    graph=graph, 
    options={"Movie": "title", "Person": "name"}, 
    physics=True, 
    limit=20
)

Output:

Best,
Rob