Skip to content

This is a Notebook gRPC API implemented in Python that allows users to create, read, update, and delete notebooks and cells, using the Notebook protobuf messages and gRPC services to communicate between client and server.

License

Notifications You must be signed in to change notification settings

batra98/jupyter-notebooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme for Notebook gRPC API

This is a Notebook gRPC API implemented in Python. It allows users to create, read, update, and delete notebooks, as well as create, read, update, and delete cells within the notebooks. It uses the Notebook protobuf messages and gRPC services to communicate between client and server.

Installation

This project uses poetry for dependency management.

  1. Clone the repository
  2. Make a directory called notebooks inside the project. This will be used to store your (serialized) notebooks.
  3. Install dependencies with poetry install
  4. Set up the database URL in config/db_env.py
  5. Run the server with python server.py

Usage

Once the server is running, you can use the Notebook gRPC API to interact with notebooks and cells. You can use the Notebook gRPC client to interact with the server or use any gRPC client of your choice.

A sample client is given in client.py. Run the client with this command python client.py.

Supported methods

CreateNotebook

Create a new notebook.

GetNotebook

Get an existing notebook by ID.

UpdateNotebook

Update an existing notebook.

DeleteNotebook

Delete an existing notebook.

ListNotebooks

List all existing notebooks.

CreateCell

Create a new cell in a notebook.

GetCell

Get an existing cell by ID.

UpdateCell

Update an existing cell.

DeleteCell

Delete an existing cell.

ExecuteCell

Execute the source code in a cell and return the output.

License

This project is licensed under the MIT License.

About

This is a Notebook gRPC API implemented in Python that allows users to create, read, update, and delete notebooks and cells, using the Notebook protobuf messages and gRPC services to communicate between client and server.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages