Skip to main content

yFiles Graphs for Jupyter logo

PyPI version

A graph diagram visualization widget for Jupyter Notebooks and Labs powered by yFiles for HTML.

Easily visualize graphs from various sources: Networkx✅, igraph✅, neo4j✅, pygraphviz✅, and any structured Python dictionaries and lists. Many more formats supported indirectly via Networkx imports!

A screenshot showing the yFiles graph widget in a jupyter lab notebook

Supported Environments

Requirements

Installation

If you already have Jupyter installed, just pip install the prebuilt extension from the Python Package Index.

pip install yfiles_jupyter_graphs

If you want to start clean and get a fresh new Jupyter Lab with the widget readily installed and available, you can use docker, too:

Form a shell, create a docker image that contains all that is required:

mkdir yfiles-jupyter && cd yfiles-jupyter
echo -e "FROM jupyter/scipy-notebook\nRUN pip install yfiles-jupyter-graphs" > Dockerfile
docker build -t yfiles-jupyter-graphs-on-docker .

(the above has been tested successfully with scipy-notebook:lab-3.4.7 and yfiles-jupyter-graphs==1.2.1), but we want to make sure that it will also work with upcoming versions - file an issue if it doesn't work for you!)

You can then create a fresh new instance of your server from this image like so:

docker run -it -p 8888:8888 --name yfiles-jupyter yfiles-jupyter-graphs-on-docker

Usage

In a notebook which has the wiget installed in the server, in a Python cell, you can then do this:

"""Execute in jupyter notebook or jupyter lab"""
from yfiles_jupyter_graphs import GraphWidget
# shows empty widget
GraphWidget()

You can find the full documentation here.

Features

neighborhood sidebar See Node Neighborhood layouts Choose Graph Layout
data sidebar Investigate Nodes or Edges Data search sidebar Search for Nodes or Edges
importer Import Graph Data element color mapping Make Data Dependent Property Changes

For example code look here.

Documentation

You can find the documentation here.

Code of Conduct

This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to contact@yworks.com.

Feedback

This widget is by no means perfect. If you find something is not working as expected we are glad to receive an issue report from you. Please make sure to search for existing issues first and check if the issue is not an unsupported feature or known issue. If you did not find anything related, report a new issue with necessary information. Please also provide a clear and descriptive title and stick to the issue templates. See issues.

Dependencies

License

See LICENSE file.

Metadata

Release files for yfiles-jupyter-graphs 1.4.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 yfiles-jupyter-graphs 1.4.8
File Size Uploaded Provenance Actions
yfiles_jupyter_graphs-1.4.8.tar.gz 8.2 MB Without provenance Details for yfiles_jupyter_graphs-1.4.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yfiles-jupyter-graphs 1.4.8
File Interpreter ABI Platform Actions
yfiles_jupyter_graphs-1.4.8-py2.py3-none-any.whl Python 2, Python 3 none any Details for yfiles_jupyter_graphs-1.4.8-py2.py3-none-any.whl

Total release size: 23.5 MB

Release files / yfiles_jupyter_graphs-1.4.8.tar.gz

Download URL yfiles_jupyter_graphs-1.4.8.tar.gz
Size 8.2 MB
Tags Source
SHA-256 checksum
How to use checksums
165a2b0a58f8d0db4f8db3b5631c92cf4d753026f4802d37b179c6ac444769da
BLAKE2b-256 checksum
How to use checksums
ca7554a910c793b3ae162f692fbf3d231b4343f97d241e3094ceb80f514ee644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / yfiles_jupyter_graphs-1.4.8-py2.py3-none-any.whl

Download URL yfiles_jupyter_graphs-1.4.8-py2.py3-none-any.whl
Size 15.3 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
04af37fe64b2df3474dca7e48cb896b267f0c93860b6f0a0dd637af99de0b3c5
BLAKE2b-256 checksum
How to use checksums
b3bd95b4c068dffdb75f7c9ce7d475d3de757c78edfda4a4ee750aa3822aa6ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for yfiles-jupyter-graphs 1.4.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.4.8 This release

2 release files No provenance

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