garphield for Python
Interactive graph visualization for Python notebooks. Pass a NetworkX
graph or pandas DataFrame to show() and get a WebGL-rendered view
inline. Select nodes, bind visual properties to algorithms, apply
force-directed layouts, annotate structure, then round-trip the result
back to Python or export standalone HTML.
import garphield as gph
import networkx as nx
G = nx.karate_club_graph()
view = gph.show(
G,
node_color="club",
node_size=G.degree,
node_label=str,
)
Once the view is displayed, drive it from Python:
view.select([0, 1, 2]).fit()
view.bind("node_color", gph.algorithm("louvain", resolution=1.1))
edited = view.to_project()
Install
pip install garphield
With NetworkX and pandas adapters:
pip install 'garphield[tables,networkx]'
From pandas
import pandas as pd
import garphield as gph
edges = pd.DataFrame({"source": ["a"], "target": ["b"], "weight": [1.5]})
project = gph.Project.from_pandas(edges)
tables = project.to_pandas()
Project files
Read, validate, and write .gph project files:
import garphield as gph
project = gph.Project.load("project.gph")
print(project.semantic_fingerprint())
project.save("project-copy.gph")
Project.save() writes deterministic, human-readable JSON. Semantic and
project fingerprints use RFC 8785/JCS canonical bytes.
Notebook round-trip
The wheel carries a version-matched notebook renderer. Use Open in Garphield to continue in the full workbench at garphield.com, then Return to notebook to bring the result back to Python.
Use chrome=["minimap"] or chrome=["toolbar"] to keep embeds
lightweight. project.save_html("graph.html", chrome=["minimap"]) writes
an interactive HTML shell that loads Garphield's remote /embed renderer. It
requires network access and a browser/host context that permits framing.
Create a complete project URL without opening a browser or uploading data:
url = gph.share_url(project)
share_string() and share_url() validate and encode locally. Links above the
262,144-character inline limit raise ProjectShareTooLargeError; use a .gph
file for larger projects.
Local Jupyter, VS Code notebooks, JupyterHub, Google Colab, and Snowflake Snowpark notebooks are supported.
Links
Metadata
Release files for garphield 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| garphield-0.1.13.tar.gz | 2.2 MB | With provenance | Details for garphield-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| garphield-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for garphield-0.1.13-py3-none-any.whl |
Total release size: 4.5 MB
Release files / garphield-0.1.13.tar.gz
| Download URL | garphield-0.1.13.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4c64b0c22ecc4a84810727950477271b5b1813f3522704f04c4de33102dcf39
|
|
BLAKE2b-256 checksum How to use checksums |
09d30688dd6cb2472f06c2dc1eacc77b1c8426cf97616a9cbea2f0cc07686e62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / garphield-0.1.13-py3-none-any.whl
| Download URL | garphield-0.1.13-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92177febe0666d97b4025af6809b1f5a1edb23e232d38878bb4343c9aeababc0
|
|
BLAKE2b-256 checksum How to use checksums |
ab4e9027b99d15f2fd02c822f37bb2893076d26d3d3f235446000972bc95dd6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for garphield 0.1.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for garphield-0.1.13.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.