GithubHelp home page GithubHelp logo

sendoamr / graph-notebook-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adevinta/graph-notebook-docker

0.0 1.0 0.0 36 KB

A docker image with the https://github.com/aws/graph-notebook environment

License: MIT License

Dockerfile 45.60% Python 33.45% Shell 20.95%

graph-notebook-docker's Introduction

graph-notebook

This Dockerfile builds an aws/graph-notebook environment. It provides an easy way to interact with graph databases using Jupyter notebooks.

Apart from the required dependencies for running the aws/graph-notebook the Dockerfile also installs the aws/neptune-python-utils module together with a helper function that allows notebooks to connect to Neptune using Python and AWS IAM credentials.

Using neptune-python-utils

  1. Run the docker image passing the environment variables corresponding to your "AWS variables", Neptune's host and Neptune's port:
docker run --rm -ti -p 8888:8888 \
    -e AWS_ACCESS_KEY_ID  -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN \
    -e AWS_REGION="eu-west-1" \
    adevinta/graph-notebook-docker:v1.0.0

Alternatively you can share your local notebooks using the -v flag, for instance:

docker run --rm -ti -p 8888:8888 \
    -v $PWD:/notebooks \
    -e AWS_ACCESS_KEY_ID  -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN \
    -e AWS_REGION="eu-west-1" \
    adevinta/graph-notebook-docker:v1.0.0
  1. Execute the following code in a Notebook served from the container:
from neptune_helper import get_neptune_iam_connection
from gremlin_python.process.anonymous_traversal import traversal
conn = get_neptune_iam_connection("neptune.example.com", 8182)
g = traversal().withRemote(conn)
  1. After that, you can use the g object to issue Gremlin queries:
g.V().limit(10).valueMap().toList()

Versioning

We use semantic-versioning for releases. Each release in git has its corresponding tag in this dockerhub repository.

Contributing

This project is in an early stage, we are not accepting external contributions yet.

To contribute, please read the contribution guidelines in CONTRIBUTING.md.

graph-notebook-docker's People

Contributors

jroimartin avatar manelmontilla avatar

Watchers

 avatar

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.