Skip to content

Commit

Permalink
Change output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasonjo committed Aug 30, 2019
1 parent 576f5fa commit 58cebf7
Showing 1 changed file with 23 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -47,15 +47,15 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"# Import Neo4j and define cypher queries\n",
"import neo4j\n",
"host = \"bolt://localhost:7687\"\n",
"user = 'neo4j'\n",
"password = 'passwor'\n",
"password = 'password'\n",
"\n",
"driver = neo4j.GraphDatabase.driver(host, auth=(user, password))\n",
"\n",
Expand All @@ -71,14 +71,13 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Elphbergs Rudolf\n",
"Rudolf Rose\n",
"Robert Ancestry\n",
"Ancestry Rose\n",
Expand All @@ -89,16 +88,16 @@
"Ruritania Burlesdon\n",
"Burlesdon George II\n",
"George II King\n",
"Rudolf the Third Ruritania\n",
"Rudolf the Third Ruritania \n",
"Burlesdon Amelia\n",
"James Burlesdon\n",
"Burlesdon a Knight of the Garter\n",
"a Knight of the Garter Rudolf\n",
"a Knight of the Garter Ruritania\n",
"Rudolf Ruritania\n",
"a Knight of the Garter Ruritania \n",
"Rudolf Ruritania \n",
"Jacob Jacob\n",
"Jacob Rudolf\n",
"Elphbergs Elphberg\n",
"Elphberg Elphberg\n",
"Elphberg Rudolf\n",
"Bob Rose\n"
]
Expand Down Expand Up @@ -156,7 +155,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -181,7 +180,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -255,7 +254,7 @@
" )\n",
"\n",
" unique_id = str(uuid.uuid4())\n",
" filename = \"figure/graph-{}.html\".format(unique_id)\n",
" filename = \"graph-{}.html\".format(unique_id)\n",
"\n",
" with open(filename, \"w\") as f:\n",
" f.write(html)\n",
Expand All @@ -266,7 +265,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 12,
"metadata": {
"scrolled": true
},
Expand All @@ -278,17 +277,17 @@
" <iframe\n",
" width=\"500\"\n",
" height=\"500\"\n",
" src=\"figure/graph-ccb9886e-ae53-4102-a498-13d813ed8751.html\"\n",
" src=\"graph-c7184742-d275-4c41-acad-ec7ad9682de7.html\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x7fe3c828feb8>"
"<IPython.lib.display.IFrame at 0x7ff17bfd9c88>"
]
},
"execution_count": 19,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -317,14 +316,13 @@
},
{
"cell_type": "code",
"execution_count": 114,
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['House', 'Royal House', 'Rassendylls', 'Embassy', 'the English Court', 'Strelsau', 'Court']\n",
"Strelsau Burlesdon\n",
"House Elphberg\n"
]
Expand Down Expand Up @@ -383,6 +381,13 @@
" session.run(save_org_query, params)\n",
" print(decode_org[ws[wi]],decode_person[ws[i]])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 58cebf7

Please sign in to comment.