ipython-cypher icon indicating copy to clipboard operation
ipython-cypher copied to clipboard

How to store multiple line queries into a variable to draw a network

Open naarkhoo opened this issue 6 years ago • 1 comments

should I convert them into a one line ? and use %cypher ? isn't there other way to turn the whole cell into a python variable ?

** I started using cypher library instead - meaning loading the library and using

a = cypher.run(command)

naarkhoo avatar Dec 05 '19 13:12 naarkhoo

It turn out the visualization doesn't work, mainly because the get_graph() method on (a) is empty ! while if I do it with as a = %cypher MATCH ... is the get_graph() is not empty. So the question is either 1) how I can store a big query (long, in multiple lines) into a variable to draw the network, or 2) what is wrong with the run command to not turn the graph.

I noticed in your tutorial https://nbviewer.jupyter.org/github/versae/ipython-cypher/blob/master/docs/examples.ipynb - you don't have an example where you store a multiple line into a variable and draw the network.

naarkhoo avatar Dec 05 '19 23:12 naarkhoo