Skip to content

numan-ai/explainable

Repository files navigation

Explainable

PyPI version

Explainable is a project for real time visualisation of complex data structures with minimal effort.
This project was created by Numan Team.
Visualisation runs on our website, so you only need install the library and initialise it in your code.

plot

Installation

pip install -U explainable

Usage

  1. Install using pip
  2. Import the library in your code
  3. Write a drawing function that returns a Graph object
  4. Add explainable.init(<draw_func>) in your code to start the server
  5. Add context using explainable.add_context() in your code
  6. Go to https://explainable.numan.ai/
import time

import explainable


def draw(cm: explainable.ContextManager):
    ctx = cm.get("my_var", default=0)

    return explainable.Graph([
        explainable.TextNode(f"My var: {ctx}"),
    ], edges=[])


explainable.init(draw)
explainable.add_context()

my_var = 1

while True:
    my_var += 1
    time.sleep(0.5)

plot

Requirements

Python 3.7 or higher.

About

Real time complex data visualisations

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •