Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

ranking-agent/gamma-viewer

Repository files navigation

ARCHIVED: This tool is not being updated anymore and is on an old version of TRAPI.

Gamma Viewer

Upload a Translator standard message into a jupyter notebook and view it in a useful analytic user interface.

Installation

pip install gamma-viewer

Local Setup

Activate your python environment of choice. This package also requires you have nodejs and npm installed.

git clone [email protected]:ranking-agent/gamma-viewer.git
cd gamma-viewer
pip install -e .
jupyter nbextension install --py --symlink --sys-prefix gamma_viewer
jupyter nbextension enable --py --sys-prefix gamma_viewer

jupyter notebook

Usage

    from gamma_viewer import GammaViewer
    from IPython.display import display
    import json

    with open('translator_standard_message.json', 'r') as f:
        res = json.load(f)

    view = GammaViewer(props={"data":res})
    display(view)