Giter Club home page Giter Club logo

neo4j-jupyter's People

Contributors

nicolewhite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neo4j-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.

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.