Registry / web-framework / gravis

gravis

JSON →
library0.1.0pypypiunverified

Gravis is an interactive graph visualization library for Python. It generates HTML/CSS/JS visualizations that can be embedded in notebooks or served as standalone web apps. Current version 0.1.0 requires Python >=3.5. Released infrequently.

pip install gravis
INSTALL
IMPORT
SIG · GRAVIS
G
gravis
web-frameworkpythonv0.1.0
Install
1.9s avg
Import
618ms
Disk
23MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.406s · 21.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.9s · import 0.336s · 22MB
23MB installed
● package 23MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gravis
import gravis
import gravis

Basic usage: create a NetworkX graph, then visualize with gravis.

import gravis as gv import networkx as nx G = nx.Graph() G.add_edge('a', 'b') # For Jupyter: use gv.d3(G) or gv.vis(G) # For standalone web app: gv.d3(G, use_standalone=True) fig = gv.d3(G) fig.display()
Debug
Known issues
gotchaThe 'graph' module (gv.d3 or gv.vis) expects a NetworkX graph. Using other graph types may cause unexpected errors.
fix
Ensure input is a NetworkX Graph, DiGraph, etc.
affects: all
deprecatedThe old import pattern 'from gravis import gv' does not work. Always use 'import gravis as gv'.
fix
Change to 'import gravis as gv'.
affects: 0.1.0
Upgrade
Version history
0.1.0latest on PyPI · released Dec 8, 2021
Audit
Dependencies
ipythonoptionalRequired for interactive display in Jupyter notebooks (notebook or lab)
Agent activity
23 hits · last 30 days
node
22
Resources
gravis — pip install gravis · libregistry