Skip to main content

Jupyter kernel for Vadalog knowledge graph system

Project description

Vadalog Jupyter Kernel

A Jupyter kernel for executing Vadalog knowledge graph queries in JupyterLab.

Installation

From PyPI (Recommended)

pip install vadalog-jupyter-kernel

From Source

git clone https://github.com/prometheuxresearch/vadalog-parallel.git
cd vadalog-parallel/vadalog-jupyter-kernel
pip install -e .

Configuration

The kernel needs to know where your Vadalog backend is running. Default is http://localhost:8080.

Option 1: Use Default Configuration

The kernel will automatically use http://localhost:8080 if no configuration is provided.

Option 2: Custom Configuration

Create a configuration file:

{
  "vadalog_endpoint": "http://your-vadalog-server:8080"
}

Install the kernel with your config:

python -m vadalog_kernel.install --config /path/to/your/config.json

Usage

  1. Start your Vadalog backend:

    docker run -p 8080:8080 vadalog/vadalog-server
    
  2. Start JupyterLab:

    jupyter lab
    
  3. Create a new notebook and select the Vadalog kernel

  4. Write Vadalog code:

    @input("person").
    person("Alice").
    person("Bob").
    
    @output("greeting").
    greeting(X, "Hello " + X) :- person(X).
    
  5. Run the cell and see the results!

Features

  • ✅ Execute Vadalog queries
  • ✅ Display results as formatted HTML tables
  • ✅ Execution timing
  • ✅ Error handling and reporting
  • ✅ Works with vadalog-extension for enhanced UI

Requirements

  • Python >= 3.8
  • JupyterLab >= 4.0.0
  • Vadalog backend server

Recommended

Install with the JupyterLab extension for the best experience:

pip install vadalog-jupyter-kernel vadalog-extension

This gives you:

  • Syntax highlighting
  • Code linting
  • Stop button integration
  • Beautiful output formatting

License

BSD 3-Clause License - see LICENSE file for details.

About Vadalog

Vadalog is a powerful knowledge graph system developed by Prometheux Limited.

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vadalog_jupyter_kernel-3.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vadalog_jupyter_kernel-3.0.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file vadalog_jupyter_kernel-3.0.1.tar.gz.

File metadata

  • Download URL: vadalog_jupyter_kernel-3.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for vadalog_jupyter_kernel-3.0.1.tar.gz
Algorithm Hash digest
SHA256 1346d788ecbd9c04ff61c75587e5d16ee5e7e5031219d021d538f4df14641d88
MD5 ec225004c6ff0df4aad4583f309effe2
BLAKE2b-256 14ce08d2da14eec299d15d3a63c9c916b74cca828af065f4fcb61a90851f78e6

See more details on using hashes here.

File details

Details for the file vadalog_jupyter_kernel-3.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vadalog_jupyter_kernel-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8862d46453b2acf88213d62b8f606259b1492d6554370c744e6003ddce651e
MD5 16255b57096d76acaee9743ce198ce3c
BLAKE2b-256 7d2519a373d769d5c98ae72ef3b27226356cf5f41b57e206c250c449ab94b3dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page