{
 "cranqe_package": "qeviz",
 "dev_metadata": {
  "author": "",
  "description": "# qeviz (Python)\n\nInteractive Epistemic Network Analysis (ENA) and Ordered Network Analysis (ONA)\nplots for Python: code networks, group means with confidence intervals, unit\npoints and subtractions, displayed inline in Jupyter or exported as\nself-contained HTML. The same library powers the R package and rENA's plots,\nand a plot built here produces the same picture as one built in R.\n\n## Install\n\n```bash\npip install qeviz --index-url https://qe-libs.org/py/simple/ --extra-index-url https://pypi.org/simple/\n```\n\n## Quick start\n\nFrom a fitted [pyENA](https://qe-libs.org/py/project/pyena/) model of rENA's\nRS.data:\n\n```python\nimport pandas as pd\nfrom pyena import ENA\nimport qeviz\n\nrs = pd.read_csv(\"rs.data.csv\")   # rENA's inst/extdata/rs.data.csv\ncodes = [\"Data\", \"Technical Constraints\", \"Performance Parameters\",\n         \"Client and Consultant Requests\", \"Design Reasoning\", \"Collaboration\"]\nrs[\"unit\"]  = rs[\"Condition\"] + \"::\" + rs[\"UserName\"]\nrs[\"convo\"] = rs[\"Condition\"] + \"::\" + rs[\"GroupName\"]\nmodel = ENA().fit(rs, \"unit\", \"convo\", codes, window_size=4)\n\np = (qeviz.from_pyena(model, group_col=\"Condition\", title=\"FirstGame\")\n       .edges(\"FirstGame\")      # the group's mean network\n       .points()                # every unit, coloured by group\n       .group(\"FirstGame\"))     # the group mean and its 95% CI\np                               # displays inline in Jupyter\np.export_html(\"firstgame.html\") # or a self-contained HTML file\n```\n\n![FirstGame mean network of RS.data with unit points and the group mean](https://gitlab.com/epistemic-analytics/qe-packages/qeviz/-/raw/main/py/docs/qeviz-rs-network.png)\n\nEdge width is proportional to the connection weight, node size to the node's\nsummed edge widths, and colour intensity is scaled across the whole model, so\nseparate plots of one model are comparable.\n\n### From DataFrames\n\nAny ENA output works: one row per code node, one row of edge weights per unit\n(columns named `\"A.B\"`), and one row of positions per unit.\n\n```python\np = qeviz.plot(nodes_df, edges_df, points_df, group_col=\"Condition\",\n               id_col=\"ENA_UNIT\", x_col=\"SVD1\", y_col=\"SVD2\")\n```\n\n## Chain API\n\nEvery method returns a new plot, so several views can branch from one base.\n\n| Method | Draws |\n|---|---|\n| `.edges(\"A\")`, `.edges(\"A\", compare=\"B\")`, `.edges(\"A\", also=\"B\")`, `.edges(unit=\"...\")` | a group's or unit's network; a subtraction; an overlay |\n| `.edges(weights=..., compare=..., colors=..., threshold=(min, max), name=...)` | a network from your own weights (Series, dict, or rows to average) |\n| `.points()`, `.points(units=[...])`, `.points(points=df, color=, shape=, labels=)` | all unit points, or a chosen set |\n| `.group()`, `.group(\"A\", intervals=\"crosshairs\", outlier=True)` | group means with confidence (and outlier) intervals |\n| `.group(points=df, label=\"subset\")` | the mean of any subset of points |\n| `.nodes(\"always\", positions=df, labels={...})` | when to draw code nodes; move or relabel them |\n| `.axes(x=True, y=True)`, `.labels(...)`, `.colors(A=\"#hex\")`, `.range(...)` | axes, labels and fonts, group colours, axis range |\n\n`qeviz.plot(..., title=, range=, scale_points=, center=, palette=)` sets the\nplot-wide options. Arguments mirror the R package's `qe_*()` functions; see the\n[qeviz repository](https://gitlab.com/epistemic-analytics/qe-packages/qeviz)\nfor the full reference.\n\n## Display and export\n\n- In Jupyter, VS Code notebooks or Quarto, a plot returned from a cell renders\n  inline; `p.show()` displays it explicitly.\n- `p.export_html(path)` writes a single self-contained HTML file.",
  "description_content_type": "text/markdown",
  "license": "MIT",
  "name": "qeviz",
  "project_urls": [],
  "requires_dist": [
   "pandas>=1.3",
   "scipy>=1.7; extra == \"scipy\"",
   "ipython>=7.0; extra == \"jupyter\"",
   "scipy>=1.7; extra == \"full\"",
   "ipython>=7.0; extra == \"full\"",
   "scipy>=1.7; extra == \"dev\"",
   "ipython>=7.0; extra == \"dev\"",
   "pytest>=7.0; extra == \"dev\""
  ],
  "requires_python": ">=3.9",
  "summary": "Interactive ENA / ONA network visualisations",
  "version": "0.5.4.9000"
 },
 "dev_metadata_from": "0.5.4.9000",
 "files": {
  "qeviz-0.1.0-py3-none-any.whl": {
   "published": null,
   "sha256": "d4d28e9656d765336583a8bfd2caeedb312366b38ad512413f71f325edaa85c7",
   "size": 43356,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/d4d28e9656d765336583a8bfd2caeedb312366b38ad512413f71f325edaa85c7/qeviz-0.1.0-py3-none-any.whl",
   "version": "0.1.0"
  },
  "qeviz-0.1.0.tar.gz": {
   "published": null,
   "sha256": "b7d7ed57b36ff86d1cf2bcccde4d6615d9631e3511c07d0734c77d4e14a820c3",
   "size": 41208,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/b7d7ed57b36ff86d1cf2bcccde4d6615d9631e3511c07d0734c77d4e14a820c3/qeviz-0.1.0.tar.gz",
   "version": "0.1.0"
  },
  "qeviz-0.2.0-py3-none-any.whl": {
   "published": null,
   "sha256": "90bf6766261c3063060621a94d79deed269235fa26099eed5c1db71abdff6ccb",
   "size": 44897,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/90bf6766261c3063060621a94d79deed269235fa26099eed5c1db71abdff6ccb/qeviz-0.2.0-py3-none-any.whl",
   "version": "0.2.0"
  },
  "qeviz-0.2.0.tar.gz": {
   "published": null,
   "sha256": "0317036354a064ff82d5115030767b55f5fbc311e42e4c2c3fcf6439609e4154",
   "size": 49205,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/0317036354a064ff82d5115030767b55f5fbc311e42e4c2c3fcf6439609e4154/qeviz-0.2.0.tar.gz",
   "version": "0.2.0"
  },
  "qeviz-0.3.0-py3-none-any.whl": {
   "published": null,
   "sha256": "e0cb3f6be871fd34b719745c9e64842ee65bcaffe8a3a58a0f575462dd39bd74",
   "size": 50805,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/e0cb3f6be871fd34b719745c9e64842ee65bcaffe8a3a58a0f575462dd39bd74/qeviz-0.3.0-py3-none-any.whl",
   "version": "0.3.0"
  },
  "qeviz-0.4.0-py3-none-any.whl": {
   "published": null,
   "sha256": "a7576bf0363ee5d9ffe77ec596bb51a38280094930aa73ed9be83106ac026f50",
   "size": 158061,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/a7576bf0363ee5d9ffe77ec596bb51a38280094930aa73ed9be83106ac026f50/qeviz-0.4.0-py3-none-any.whl",
   "version": "0.4.0"
  },
  "qeviz-0.4.0.tar.gz": {
   "published": null,
   "sha256": "5c9b541a3277b5d6b83eb8f3f1d6ecd22bda2519ae8d19589c31c9fe58d51b0f",
   "size": 161786,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/5c9b541a3277b5d6b83eb8f3f1d6ecd22bda2519ae8d19589c31c9fe58d51b0f/qeviz-0.4.0.tar.gz",
   "version": "0.4.0"
  },
  "qeviz-0.5.0-py3-none-any.whl": {
   "published": null,
   "sha256": "34df8070bfb63c1f6d9d6721c00168295fd6a49e47bdca19168e63775b06cc36",
   "size": 159830,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/34df8070bfb63c1f6d9d6721c00168295fd6a49e47bdca19168e63775b06cc36/qeviz-0.5.0-py3-none-any.whl",
   "version": "0.5.0"
  },
  "qeviz-0.5.1-py3-none-any.whl": {
   "published": null,
   "sha256": "8886d434a3cba3ceaa6587d3f989d938072e388b16dd5d2847878389baecf1ae",
   "size": 159831,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/8886d434a3cba3ceaa6587d3f989d938072e388b16dd5d2847878389baecf1ae/qeviz-0.5.1-py3-none-any.whl",
   "version": "0.5.1"
  },
  "qeviz-0.5.1.tar.gz": {
   "published": null,
   "sha256": "b22f6622da5a3749a1ea4160b0e75f966eda5b59330880d3921f5d22e85169fb",
   "size": 163651,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/b22f6622da5a3749a1ea4160b0e75f966eda5b59330880d3921f5d22e85169fb/qeviz-0.5.1.tar.gz",
   "version": "0.5.1"
  },
  "qeviz-0.5.2-py3-none-any.whl": {
   "published": null,
   "sha256": "bf4404015e2eac38ace2297d72034fbc023d83d0ed70252f3cc6b5be0f7c31d4",
   "size": 160067,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/bf4404015e2eac38ace2297d72034fbc023d83d0ed70252f3cc6b5be0f7c31d4/qeviz-0.5.2-py3-none-any.whl",
   "version": "0.5.2"
  },
  "qeviz-0.5.2.tar.gz": {
   "published": null,
   "sha256": "599f6d88ac7729c6a7849c377210abe08569c713026e577a67dded81fbb6d72b",
   "size": 163881,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/599f6d88ac7729c6a7849c377210abe08569c713026e577a67dded81fbb6d72b/qeviz-0.5.2.tar.gz",
   "version": "0.5.2"
  },
  "qeviz-0.5.3-py3-none-any.whl": {
   "published": "2026-10-05",
   "sha256": "0216b9e36340885da91f176f6ac94b368a7cd85d2a99f61ad5d63bae6d38ec55",
   "size": 168009,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/0216b9e36340885da91f176f6ac94b368a7cd85d2a99f61ad5d63bae6d38ec55/qeviz-0.5.3-py3-none-any.whl",
   "version": "0.5.3"
  },
  "qeviz-0.5.3.tar.gz": {
   "published": "2026-10-05",
   "sha256": "7af357793fe0e1dbf07b38c7d83534952a4f8e2c722288b11d4c4bc5b9f421e0",
   "size": 174864,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/7af357793fe0e1dbf07b38c7d83534952a4f8e2c722288b11d4c4bc5b9f421e0/qeviz-0.5.3.tar.gz",
   "version": "0.5.3"
  },
  "qeviz-0.5.4-py3-none-any.whl": {
   "published": "2026-10-06",
   "sha256": "80fb02d9855ce8847031fc0d920bb407bbebd7861eec2d7b03d6c3ae7aac5a14",
   "size": 169686,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/80fb02d9855ce8847031fc0d920bb407bbebd7861eec2d7b03d6c3ae7aac5a14/qeviz-0.5.4-py3-none-any.whl",
   "version": "0.5.4"
  },
  "qeviz-0.5.4.9000-py3-none-any.whl": {
   "published": "2026-10-06",
   "sha256": "f99da3c90daba459e42140fbec672293e06f19c43cc6ca62834e86f9c4b58d24",
   "size": 169738,
   "version": "0.5.4.9000"
  },
  "qeviz-0.5.4.9000.tar.gz": {
   "published": "2026-10-06",
   "sha256": "4e2059fb777f9d1f5faeca1195bd88d37f64a9e8a4cbe75e754ffc74e91b6c60",
   "size": 177747,
   "version": "0.5.4.9000"
  },
  "qeviz-0.5.4.tar.gz": {
   "published": "2026-10-06",
   "sha256": "bedefa36832107586c9c3efec47041b654daeb539d3cfa6d3e0b9c52e72a0926",
   "size": 177711,
   "url": "https://gitlab.com/api/v4/projects/22522458/packages/pypi/files/bedefa36832107586c9c3efec47041b654daeb539d3cfa6d3e0b9c52e72a0926/qeviz-0.5.4.tar.gz",
   "version": "0.5.4"
  }
 },
 "metadata": {
  "author": "",
  "description": "# qeviz (Python)\n\nInteractive Epistemic Network Analysis (ENA) and Ordered Network Analysis (ONA)\nplots for Python: code networks, group means with confidence intervals, unit\npoints and subtractions, displayed inline in Jupyter or exported as\nself-contained HTML. The same library powers the R package and rENA's plots,\nand a plot built here produces the same picture as one built in R.\n\n## Install\n\n```bash\npip install qeviz --index-url https://qe-libs.org/py/simple/ --extra-index-url https://pypi.org/simple/\n```\n\n## Quick start\n\nFrom a fitted [pyENA](https://qe-libs.org/py/project/pyena/) model of rENA's\nRS.data:\n\n```python\nimport pandas as pd\nfrom pyena import ENA\nimport qeviz\n\nrs = pd.read_csv(\"rs.data.csv\")   # rENA's inst/extdata/rs.data.csv\ncodes = [\"Data\", \"Technical Constraints\", \"Performance Parameters\",\n         \"Client and Consultant Requests\", \"Design Reasoning\", \"Collaboration\"]\nrs[\"unit\"]  = rs[\"Condition\"] + \"::\" + rs[\"UserName\"]\nrs[\"convo\"] = rs[\"Condition\"] + \"::\" + rs[\"GroupName\"]\nmodel = ENA().fit(rs, \"unit\", \"convo\", codes, window_size=4)\n\np = (qeviz.from_pyena(model, group_col=\"Condition\", title=\"FirstGame\")\n       .edges(\"FirstGame\")      # the group's mean network\n       .points()                # every unit, coloured by group\n       .group(\"FirstGame\"))     # the group mean and its 95% CI\np                               # displays inline in Jupyter\np.export_html(\"firstgame.html\") # or a self-contained HTML file\n```\n\n![FirstGame mean network of RS.data with unit points and the group mean](https://gitlab.com/epistemic-analytics/qe-packages/qeviz/-/raw/main/py/docs/qeviz-rs-network.png)\n\nEdge width is proportional to the connection weight, node size to the node's\nsummed edge widths, and colour intensity is scaled across the whole model, so\nseparate plots of one model are comparable.\n\n### From DataFrames\n\nAny ENA output works: one row per code node, one row of edge weights per unit\n(columns named `\"A.B\"`), and one row of positions per unit.\n\n```python\np = qeviz.plot(nodes_df, edges_df, points_df, group_col=\"Condition\",\n               id_col=\"ENA_UNIT\", x_col=\"SVD1\", y_col=\"SVD2\")\n```\n\n## Chain API\n\nEvery method returns a new plot, so several views can branch from one base.\n\n| Method | Draws |\n|---|---|\n| `.edges(\"A\")`, `.edges(\"A\", compare=\"B\")`, `.edges(\"A\", also=\"B\")`, `.edges(unit=\"...\")` | a group's or unit's network; a subtraction; an overlay |\n| `.edges(weights=..., compare=..., colors=..., threshold=(min, max), name=...)` | a network from your own weights (Series, dict, or rows to average) |\n| `.points()`, `.points(units=[...])`, `.points(points=df, color=, shape=, labels=)` | all unit points, or a chosen set |\n| `.group()`, `.group(\"A\", intervals=\"crosshairs\", outlier=True)` | group means with confidence (and outlier) intervals |\n| `.group(points=df, label=\"subset\")` | the mean of any subset of points |\n| `.nodes(\"always\", positions=df, labels={...})` | when to draw code nodes; move or relabel them |\n| `.axes(x=True, y=True)`, `.labels(...)`, `.colors(A=\"#hex\")`, `.range(...)` | axes, labels and fonts, group colours, axis range |\n\n`qeviz.plot(..., title=, range=, scale_points=, center=, palette=)` sets the\nplot-wide options. Arguments mirror the R package's `qe_*()` functions; see the\n[qeviz repository](https://gitlab.com/epistemic-analytics/qe-packages/qeviz)\nfor the full reference.\n\n## Display and export\n\n- In Jupyter, VS Code notebooks or Quarto, a plot returned from a cell renders\n  inline; `p.show()` displays it explicitly.\n- `p.export_html(path)` writes a single self-contained HTML file.",
  "description_content_type": "text/markdown",
  "license": "MIT",
  "name": "qeviz",
  "project_urls": [],
  "requires_dist": [
   "pandas>=1.3",
   "scipy>=1.7; extra == \"scipy\"",
   "ipython>=7.0; extra == \"jupyter\"",
   "scipy>=1.7; extra == \"full\"",
   "ipython>=7.0; extra == \"full\"",
   "scipy>=1.7; extra == \"dev\"",
   "ipython>=7.0; extra == \"dev\"",
   "pytest>=7.0; extra == \"dev\""
  ],
  "requires_python": ">=3.9",
  "summary": "Interactive ENA / ONA network visualisations",
  "version": "0.5.4"
 },
 "metadata_from": "0.5.4",
 "name": "qeviz"
}
