Skip to content

Fix supplying neo4j_uri and auth data in the cell line#3

Open
rickardg wants to merge 1 commit intoconker84:mainfrom
rickardg:auth_fix
Open

Fix supplying neo4j_uri and auth data in the cell line#3
rickardg wants to merge 1 commit intoconker84:mainfrom
rickardg:auth_fix

Conversation

@rickardg
Copy link
Copy Markdown

When using cy2py-1.1.5 it is not possible to run a cypher cell if the connection data is provided inline in the cell, like this
%%cypher -u bolt://xxx.yy:nnnn -us USER -pw PASS

while it does work if it is provided in python variables, like this
neo_uri = bolt://xxx.yy:nnnn
neo_user = USER
neo_pass = PASS
%%cypher -u $neo_uri-us $neo_user -pw $neo_pass

This was due to an if-statement with two identical code paths in cy2.py:__parse_args. I have pushed a fix that 'works for me' on my fork. (I can't get Docker running on my ancient dev machine so there are no tests, sorry about that.)

@conker84
Copy link
Copy Markdown
Owner

hi @rickardg can you please add a test?

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

Successfully merging this pull request may close these issues.

2 participants