{"id":20911487,"url":"https://github.com/anant/example-janusgraph-notebook","last_synced_at":"2026-03-07T21:02:38.317Z","repository":{"id":112529287,"uuid":"466065753","full_name":"Anant/example-janusgraph-notebook","owner":"Anant","description":"Tutorial for integrating Janusgraph with AWS graph jupyter notebook. Uses ES + Cassandra backend, over docker","archived":false,"fork":false,"pushed_at":"2022-05-09T15:44:07.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T20:47:47.979Z","etag":null,"topics":["aws","cassandra","docker-compose","elasticsearch","janusgraph","jupyter-notebook"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-04T09:43:10.000Z","updated_at":"2024-10-04T12:19:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2b7417b-9c57-44e7-a59f-3d9e5c524d96","html_url":"https://github.com/Anant/example-janusgraph-notebook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anant/example-janusgraph-notebook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anant%2Fexample-janusgraph-notebook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anant%2Fexample-janusgraph-notebook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anant%2Fexample-janusgraph-notebook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anant%2Fexample-janusgraph-notebook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anant","download_url":"https://codeload.github.com/Anant/example-janusgraph-notebook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anant%2Fexample-janusgraph-notebook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30231490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cassandra","docker-compose","elasticsearch","janusgraph","jupyter-notebook"],"created_at":"2024-11-18T14:22:00.317Z","updated_at":"2026-03-07T21:02:38.289Z","avatar_url":"https://github.com/Anant.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JanusGraph Notebook\nA tutorial for running [JanusGraph](https://janusgraph.org/) on Cassandra and Elasticsearch, and then integrating within [AWS Graph Notebook](https://github.com/aws/graph-notebook). \n\nFor more information, see the [blog post](https://blog.anant.us/janusgraph-on-jupyter-using-notebooks-with-graph/).\n\n## Setup\nStart everything using docker-compose\n```\ndocker-compose up -d\n```\n\nYou can now find it open in http://localhost:8888\n\nLogin using password: `tensorflow`\n\n### Setup a connection in a notebook\nOut of the box, the Graph Notebook lib provides dozens of notebooks to try out. Unfortunately those with seed data for loading into your graph mostly don't work since they use custom string ids, and [JanusGraph doesn't support that](https://github.com/JanusGraph/janusgraph/issues/1221). \n\nHowever, you can load in the air routes data manually using the commands below, which will allow you to use the `Air-Routes-Gremlin` notebook\n\n#### Load seed data\n```\n./scripts/load-in-airroutes.sh\ndocker cp ./tmp jg-notebook-janusgraph:/opt/tmp/\n\ndocker exec -it jg-notebook-janusgraph ./bin/gremlin.sh\n:remote connect tinkerpop.server conf/remote.yaml\ng = traversal().withRemote('conf/remote-graph.properties')\npath = \"/opt/tmp/air-routes.xml\";\ng.io(path).read().iterate();\n```\n\n\nRun this at the top of any notebook that you try. Do it here as well.\n\n```\n%%graph_notebook_config\n{\n  \"host\": \"janusgraph\",\n  \"port\": 8182,\n  \"ssl\": false,\n  \"gremlin\": {\n    \"traversal_source\": \"g\"\n  }\n}\n```\n\nExample of how this works is given here: http://localhost:8888/notebooks/notebooks/sample-config.ipynb\n\n#### Run the notebook!\nYou can find it here: http://localhost:8888/notebooks/notebooks/sample-config.ipynb\n\n## Start a console\n\nWant to just use your standard Gremlin console for whatever reason?\n\n```\ndocker exec -it jg-notebook-janusgraph ./bin/gremlin.sh\n:remote connect tinkerpop.server conf/remote.yaml\ng = traversal().withRemote('conf/remote-graph.properties')\n\n# g.V() or whatever you want to run\n```\n\n# TODOs\n- Add script or docs to index into Elasticsearch (we have ES setup - but out of the box it isn't being used!)\n# Credits: \nBased heavily on:\n- https://github.com/JanusGraph/janusgraph-docker/blob/master/docker-compose-cql-es.yml \n- https://github.com/skhatri/notebook\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanant%2Fexample-janusgraph-notebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanant%2Fexample-janusgraph-notebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanant%2Fexample-janusgraph-notebook/lists"}