neo4j-jupyter's People
Forkers
superjohn sharonanne dvillaj nickynicolson jancvanb xanadu31 worthyl donnchadhcameron scottjwalter windhaunting rlugojr echowhisky bussiere sanchez-castro koenr3 yiyisan ric-bianchi raggnar supermans1201 neo4j-contrib tzungtzu nagyistge rodrigoperes sgoggins codophobia petersonjr rahulrawat11 lenovopast17 cypsh1 deepthisuthan adcxdpf pankajshegokar arjunkalburgi datavizi david-crooke okcorral interols gabrielvalenzuelalorca bleyme andrewng95 maverik-akagami ttklm20 padulavic mattius459 architectjyothi evaarevalo shayon2387 abraham314 hardikgw dennisliub sarojkumar1212 angelvergaratarlogic icfly2 dillipks onurkou victoryuyue syedalizafar xigst1 ricardojacomini poshakjaiswal sihamamarouche ambrose-leung as32608 denisesl22 ixdmei marimeireles johannesnutz manikandanthiagarajan preheatedkd heraclitus007 iasantibanez dcsan kadjulio wilbhall drahnreb johncrash64 tmclerran edgarbenet sooryaraysam xqk snikhil17 sreyashi-bhattacharjee chunthebear ldomb rafeekpro alxcnl ideepankarsharma2003neo4j-jupyter's Issues
Running Notebooks Using Docker
To try to get quickstarted on this, I used a docker compose file to wire together a scipy notebook and neo4j using the following docker-compose.yml
file:
neo4j:
image: kbastani/docker-neo4j:latest
ports:
- "7474:7474"
- "1337:1337"
volumes:
- /opt/data
jupyterscipy:
image: jupyter/scipy-notebook
ports:
- "8888:8888"
links:
- neo4j:neo4j
cd
into the directory containing the docker-compose.yml
file and run: docker-compose up -d
To connect to the neo4j db: graph = Graph("http://neo4j:7474/db/data/")
Also, I note that when running the hello-world
notebook, you try to save an image into the figure
dir, which may not exist. Something like mkdir -p figure
should fix that?
DeprecationWarning for `node.properties`
In 2ca1abc when you updated the scripts/vis.py
file, on Line 95 and Line 97 you still used node.properties
.
When I run this in Py3.5 I get a DeprecationWarning that says this should be replaced with dict(node)
.
I've tried this locally and simply replacing one with the other seems to work fine with no negative impact on your code.
Great update, though. Your code example has been very useful in helping me understand py2neo better and I really like the in-notebook Javascript visualizations.
Getting "No such file or directory: 'figure/graph-c4ab0bd0-3174-463b-adf6-d6d344a14758.html'" when trying to use draw from scripts.vis
The error seems to be in Line 61 of vis.py (reference to a "figure" folder).
Cannot product graph using networkx
When executing g = results.get_graph(), I'm getting
TypeError Traceback (most recent call last)
in ()
4 results = get_ipython().run_line_magic('cypher', 'http://neo4j:password@localhost:7474 MATCH p = (:Person)-[:LIKES]->(:Drink) RETURN p')
5
----> 6 g = results.get_graph()
7
8 nx.draw(g)
/usr/local/lib/python3.6/site-packages/cypher/run.py in get_graph(self, directed)
202 properties = copy.deepcopy(node['properties'])
203 properties['labels'] = node['labels']
--> 204 graph.add_node(node['id'], properties)
205 for rel in item['relationships']:
206 properties = copy.deepcopy(rel['properties'])
TypeError: add_node() takes 2 positional arguments but 3 were given
Any resolution please?
neo with Django
I tried adapting your vis.py code in Django but was not able to display the graph. I already installed vis.js lib I'm new to both python and Django, can you explain how it would work?
Graph won't display - is my vis.js set up correctly?
Hi Nicole and others,
Quick question, I have followed the example in the hello_world script, but still my graph doesn't display.
I am new to javascript and so I assume that I am not installing the vis.js package properly. I did so by running:
bower install vis
bower not-cached https://github.com/almende/vis.git#*
bower resolve https://github.com/almende/vis.git#*
bower checkout vis#v4.21.0
bower resolved https://github.com/almende/vis.git#4.21.0
bower install vis#4.21.0
The vis.css and vis.js files are located in:
home/allan/vis-master/dist/
home/allan/bower_components/vis/dist/
In the vis_network function, I have tried setting the src and href options to either of these paths, but still the graph does not show up.
As I said, I'm fairly new to working with javascript packages, so I'm probably missing something basic.
Could someone let me know if I'm on the right track here or not?
Any help is appreciated.
Sincerely,
Allan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.