Skip to content

This repository demonstrates Python integration with Jupyter Notebooks and Neo4j, showcasing a basic social media network model and database interaction.

Notifications You must be signed in to change notification settings

bydevmar/Jupyter_Neo4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Python Jupyter Binding with Neo4j

Introduction

This project demonstrates how to use Python within a Jupyter Notebook environment to interact with Neo4j, a popular graph database. In this project, we create a simple social media network model using Python classes and then interact with a Neo4j database to represent and query this model.

Requirements

  • Python
  • Jupyter Notebook
  • Neo4j
  • py2neo library

Getting Started

  1. Install Python, Jupyter Notebook, and Neo4j on your system.
  2. Install the py2neo library using pip install py2neo.
  3. Clone this repository to your local machine.
  4. Open the Jupyter Notebook file (notebook.ipynb) in your Jupyter environment.

Usage

  1. Import the required modules and establish a connection to Neo4j.
  2. Create classes for User, Post, and SocialMediaPlatform.
  3. Create instances of users, social media platforms, and posts.
  4. Create nodes for social media platforms, users, and posts in the Neo4j database.
  5. Establish relationships between users and platforms, and users and posts.
  6. Execute queries to retrieve information from the Neo4j database.

Conclusion

This project serves as a practical demonstration of using Python with Jupyter Notebook for interacting with a Neo4j graph database. Feel free to explore and expand upon the provided codebase to suit your specific requirements.

For more information, refer to the official documentation of Neo4j and py2neo.

About

This repository demonstrates Python integration with Jupyter Notebooks and Neo4j, showcasing a basic social media network model and database interaction.

Topics

Resources

Stars

Watchers

Forks