Skip to content

Adds a possibility to send images from your live visualization back to python.

Notifications You must be signed in to change notification settings

libvis/screenshotable

Repository files navigation

libvis logo

This is a screenshotable libvis module.

It adds a possibility to send images from your live visualization back to python.

Installation

libvis-mods download gh:libvis/screenshotable
cd screenshotable
libvis-mods install

Usage

from libvis.modules import screenshotable
from libvis import Vis

vis = Vis()

my_graph = [1, 2, 5, 3.5. 4]

wrapped = screenshotable(my_graph)
vis.vars.test = wrapped
wrapped.show()

The state of vis.vars.test will be visualised live at localhost:7000/.

The graph will be augmented by two buttons that allow sending screenshot to the python object. access base-64 encoded data at object.image.

Documentation

docs.libvis.dev

About

Adds a possibility to send images from your live visualization back to python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published