Neo4j graph visualization in JupyterLab

xavier_lefumeux
Fri, 28 Aug 2020 14:29:19 +0000
General

Hi ladies & gents,

I've just been discovering Jupyter(Lab) notebooks on one side (new need in my day to day's official job) and playing with Neo4j for few months on the other side. Within my local test&crash sandbox (Debian VM with Docker running in VirtualBox on my Windows laptop), I do have a docker version of several tools including among others:

jupyterlab minimal notebook version for documentation needs

draw.io for architecture design, business process or uml diagrams

and neo4j latest for everything I do with graphs

I did install Neo4j python drivers (official and py2neo one

s) in jupyterlab and am able to query the neo4j instance in docker from there (cells with python kernel), retrieving data with cypher queries...

My intent would be to display graphical outputs of my graphs into jupyterlab cells.
Ultimately, including neo4j browser or bloom's rendering would be ideal for documentation purposes.

Could someone advise on how to get into that direction ?

My first tries were as simple as generating neo4j outputs in the browser as svg or png stored then at a given jupyterlab location, so that it can be rendered as images then in the notebook.
Being unable at the moment to display neo4j browser in jupyterlab so that to capture as a screenshot what is displayed there, I would be looking for the following solutions :

embed a graphical toolkit in jupyterlab being able to display the neo4j graph in the way it is being done in neo4j browser so that it can be caught and rendered then in pdf or html or latex export formats

make the neo4j browser as an extension in jupyterlab and cover the same needs

or anything that could make the trick here

Note: I'm not a python guru, used to code in java or scala when I was a developer and quite still new to neo4j and jupyter to some extent but still willing to learn

Thanks in advance for any feedback, guidance or hint on this topic

Best regards
Xav

4 posts - 3 participants