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

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

Open
naarkhoo opened this issue Dec 5, 2019 · 1 comment
Open

Comments

@naarkhoo
Copy link

naarkhoo commented Dec 5, 2019

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 naarkhoo closed this as completed Dec 5, 2019
@naarkhoo
Copy link
Author

naarkhoo commented Dec 5, 2019

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 naarkhoo reopened this Dec 6, 2019
@naarkhoo naarkhoo changed the title how to store big queries into variable How to store multiple line queries into a variable to draw a network Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant