Skip to main content

A diagram visualization extension for JupyterLab and Jupyter Notebooks powered by yFiles for HTML

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yfiles_jupyter_graphs-1.4.7.tar.gz (8.2 MB view details)

Uploaded Source

Built Distribution

yfiles_jupyter_graphs-1.4.7-py2.py3-none-any.whl (15.3 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file yfiles_jupyter_graphs-1.4.7.tar.gz.

File metadata

  • Download URL: yfiles_jupyter_graphs-1.4.7.tar.gz
  • Upload date:
  • Size: 8.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for yfiles_jupyter_graphs-1.4.7.tar.gz
Algorithm Hash digest
SHA256 f35c4a45fb1226b0c8abfafed5f18127195e54d659f7b6425cf5921ae57c967c
MD5 3bd3e46c073ccbec7a0babb906bf0e06
BLAKE2b-256 edc2a4636ab65c8990d10cab14bf44078ccc7d039e790825cee596d8b076db9f

See more details on using hashes here.

File details

Details for the file yfiles_jupyter_graphs-1.4.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for yfiles_jupyter_graphs-1.4.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 df9996dfb12b012aa00776f654e5e73a30e6f2e157ca348fb91d7c823a44a918
MD5 f08127d1c3fb58bc678bd635dd84139f
BLAKE2b-256 b2aa5d378084303f5430fa817e07ccf05ba5b9f4158af199c59e0324b8927382

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page