qeviz 0.5.4 0.5.4.9000

Development build 0.5.4.9000, built from main: its README, dependencies and API documentation may describe changes that are not released. For the latest release, see qeviz 0.5.4.

qeviz has been renamed to qe-viz. The files below are kept so existing installs keep working; new projects should install qe-viz.

Interactive ENA / ONA network visualisations

Python >=3.9 · License: MIT · Source code

Also available for R: qeviz · npm: @qe-libs/qeviz · Julia: qeviz

Install

Install qe-viz instead. Do not pip install qeviz — that name may resolve to an unrelated project on PyPI.

Versions

Links in the wheel columns are the Python versions each wheel supports; pip and uv pick the right file automatically.

VersionPublishedSourceWheel
all platforms
0.5.4.90002026-10-06.tar.gzpy3
0.5.42026-10-06.tar.gzpy3
0.5.32026-10-05.tar.gzpy3
0.5.2—.tar.gzpy3
0.5.1—.tar.gzpy3
0.5.0——py3
0.4.0—.tar.gzpy3
0.3.0——py3
0.2.0—.tar.gzpy3
0.1.0—.tar.gzpy3

Dependencies

For 0.5.4.9000.

Description

qeviz (Python)

Interactive Epistemic Network Analysis (ENA) and Ordered Network Analysis (ONA) plots for Python: code networks, group means with confidence intervals, unit points and subtractions, displayed inline in Jupyter or exported as self-contained HTML. The same library powers the R package and rENA's plots, and a plot built here produces the same picture as one built in R.

Install

pip install qeviz --index-url https://qe-libs.org/py/simple/ --extra-index-url https://pypi.org/simple/

Quick start

From a fitted pyENA model of rENA's RS.data:

import pandas as pd
from pyena import ENA
import qeviz

rs = pd.read_csv("rs.data.csv")   # rENA's inst/extdata/rs.data.csv
codes = ["Data", "Technical Constraints", "Performance Parameters",
         "Client and Consultant Requests", "Design Reasoning", "Collaboration"]
rs["unit"]  = rs["Condition"] + "::" + rs["UserName"]
rs["convo"] = rs["Condition"] + "::" + rs["GroupName"]
model = ENA().fit(rs, "unit", "convo", codes, window_size=4)

p = (qeviz.from_pyena(model, group_col="Condition", title="FirstGame")
       .edges("FirstGame")      # the group's mean network
       .points()                # every unit, coloured by group
       .group("FirstGame"))     # the group mean and its 95% CI
p                               # displays inline in Jupyter
p.export_html("firstgame.html") # or a self-contained HTML file

FirstGame mean network of RS.data with unit points and the group mean

Edge width is proportional to the connection weight, node size to the node's summed edge widths, and colour intensity is scaled across the whole model, so separate plots of one model are comparable.

From DataFrames

Any ENA output works: one row per code node, one row of edge weights per unit (columns named "A.B"), and one row of positions per unit.

p = qeviz.plot(nodes_df, edges_df, points_df, group_col="Condition",
               id_col="ENA_UNIT", x_col="SVD1", y_col="SVD2")

Chain API

Every method returns a new plot, so several views can branch from one base.

Method Draws
.edges("A"), .edges("A", compare="B"), .edges("A", also="B"), .edges(unit="...") a group's or unit's network; a subtraction; an overlay
.edges(weights=..., compare=..., colors=..., threshold=(min, max), name=...) a network from your own weights (Series, dict, or rows to average)
.points(), .points(units=[...]), .points(points=df, color=, shape=, labels=) all unit points, or a chosen set
.group(), .group("A", intervals="crosshairs", outlier=True) group means with confidence (and outlier) intervals
.group(points=df, label="subset") the mean of any subset of points
.nodes("always", positions=df, labels={...}) when to draw code nodes; move or relabel them
.axes(x=True, y=True), .labels(...), .colors(A="#hex"), .range(...) axes, labels and fonts, group colours, axis range

qeviz.plot(..., title=, range=, scale_points=, center=, palette=) sets the plot-wide options. Arguments mirror the R package's qe_*() functions; see the qeviz repository for the full reference.

Display and export

All files and SHA-256 hashes (18)
FileSizeSHA-256
qeviz-0.5.4.9000.tar.gz173.6 KB4e2059fb777f9d1f5faeca1195bd88d37f64a9e8a4cbe75e754ffc74e91b6c60
qeviz-0.5.4.9000-py3-none-any.whl165.8 KBf99da3c90daba459e42140fbec672293e06f19c43cc6ca62834e86f9c4b58d24
qeviz-0.5.4.tar.gz173.5 KBbedefa36832107586c9c3efec47041b654daeb539d3cfa6d3e0b9c52e72a0926
qeviz-0.5.4-py3-none-any.whl165.7 KB80fb02d9855ce8847031fc0d920bb407bbebd7861eec2d7b03d6c3ae7aac5a14
qeviz-0.5.3.tar.gz170.8 KB7af357793fe0e1dbf07b38c7d83534952a4f8e2c722288b11d4c4bc5b9f421e0
qeviz-0.5.3-py3-none-any.whl164.1 KB0216b9e36340885da91f176f6ac94b368a7cd85d2a99f61ad5d63bae6d38ec55
qeviz-0.5.2.tar.gz160.0 KB599f6d88ac7729c6a7849c377210abe08569c713026e577a67dded81fbb6d72b
qeviz-0.5.2-py3-none-any.whl156.3 KBbf4404015e2eac38ace2297d72034fbc023d83d0ed70252f3cc6b5be0f7c31d4
qeviz-0.5.1.tar.gz159.8 KBb22f6622da5a3749a1ea4160b0e75f966eda5b59330880d3921f5d22e85169fb
qeviz-0.5.1-py3-none-any.whl156.1 KB8886d434a3cba3ceaa6587d3f989d938072e388b16dd5d2847878389baecf1ae
qeviz-0.5.0-py3-none-any.whl156.1 KB34df8070bfb63c1f6d9d6721c00168295fd6a49e47bdca19168e63775b06cc36
qeviz-0.4.0.tar.gz158.0 KB5c9b541a3277b5d6b83eb8f3f1d6ecd22bda2519ae8d19589c31c9fe58d51b0f
qeviz-0.4.0-py3-none-any.whl154.4 KBa7576bf0363ee5d9ffe77ec596bb51a38280094930aa73ed9be83106ac026f50
qeviz-0.3.0-py3-none-any.whl49.6 KBe0cb3f6be871fd34b719745c9e64842ee65bcaffe8a3a58a0f575462dd39bd74
qeviz-0.2.0.tar.gz48.1 KB0317036354a064ff82d5115030767b55f5fbc311e42e4c2c3fcf6439609e4154
qeviz-0.2.0-py3-none-any.whl43.8 KB90bf6766261c3063060621a94d79deed269235fa26099eed5c1db71abdff6ccb
qeviz-0.1.0.tar.gz40.2 KBb7d7ed57b36ff86d1cf2bcccde4d6615d9631e3511c07d0734c77d4e14a820c3
qeviz-0.1.0-py3-none-any.whl42.3 KBd4d28e9656d765336583a8bfd2caeedb312366b38ad512413f71f325edaa85c7