Skip to content

Commit ee7d220

Browse files
committed
major fixing for magic cells
1 parent 9552393 commit ee7d220

File tree

7 files changed

+341
-1353
lines changed

7 files changed

+341
-1353
lines changed
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Trash Info]
2+
Path=labs/pt-br/4.Neo4j%20and%20yFiles.ipynb
3+
DeletionDate=2024-09-14T05:58:33

.ipython/extensions/neo4j_cypher_query.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def vis_network(nodes, edges, physics=True):
7373
html = html.format(id=unique_id, nodes=json.dumps(nodes), edges=json.dumps(edges), physics=json.dumps(physics))
7474

7575
try:
76-
os.makedirs('graphs')
76+
os.makedirs('resources/graphs')
7777
except OSError as e:
7878
pass
7979

@@ -83,7 +83,7 @@ def vis_network(nodes, edges, physics=True):
8383
file.write(html)
8484
file.close()
8585

86-
return IFrame(filename, width="100%", height="450")
86+
return IFrame(filename, width="100%", height="400")
8787

8888
def draw(graph, options, physics=False, limit=300):
8989
# The options argument should be a dictionary of node labels and property keys; it determines which property
@@ -94,7 +94,7 @@ def draw(graph, options, physics=False, limit=300):
9494
MATCH (n)
9595
WITH n, rand() AS random
9696
ORDER BY random
97-
LIMIT 300
97+
LIMIT 150
9898
OPTIONAL MATCH (n)-[r]->(m)
9999
RETURN n AS source_node,
100100
id(n) AS source_id,

0 commit comments

Comments
 (0)