Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.11 instead.

garphield

garphield for Python

Explore graphs visually from a notebook. Pass a NetworkX graph or pandas DataFrame to show() and get an interactive Garphield view inline - then open the full workbench to build stories, apply layouts, and return the result to Python.

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, so the view works without a hosted renderer or CDN. Use Open in Garphield to continue in the full workbench at garphield.com, then Return to notebook to bring the result back to Python.

The handoff waits for Send project before the remote frame is created or the project is sent to it. The transport uses a 10 s acknowledgement timeout.

Use chrome=["minimap"] or chrome=["toolbar"] to keep embeds lightweight. project.save_html("graph.html", chrome=["minimap"]) writes a standalone interactive HTML file.

Environments

Local Jupyter, VS Code notebooks, JupyterHub, Google Colab, and Snowflake Snowpark notebooks are resolved automatically. For Snowpark, use show_snowpark() which materializes selected tables in the kernel before handoff.

Metadata

Release files for garphield 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for garphield 0.1.8
File Size Uploaded
garphield-0.1.8.tar.gz 995.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for garphield 0.1.8
File Interpreter ABI Platform
garphield-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 2.1 MB

Release files / garphield-0.1.8.tar.gz

Download URL garphield-0.1.8.tar.gz
Size 995.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cca589356c15105192539159531b7af3dd2b1a3ee722a2035b4f89406879a636
BLAKE2b-256 checksum
How to use checksums
ca32a10de1b8b9e7dfd479f9283849b4ed5a3c0cf0ab3ad922bb65d76158fc37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / garphield-0.1.8-py3-none-any.whl

Download URL garphield-0.1.8-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2798e6de408f7c0d4711f25e4fa6b91ce03b87736acca3e8e49d8329ed63b458
BLAKE2b-256 checksum
How to use checksums
9a019818a774fd66da0d520ac9d38018bed3422375cd7fb5da2db96aaf5cd676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.1.11

2 release files

0.1.9

2 release files

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page