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.

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

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:

Usage

"""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.3.3.tar.gz (7.8 MB view details)

Uploaded Source

Built Distribution

yfiles_jupyter_graphs-1.3.3-py2.py3-none-any.whl (14.6 MB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: yfiles_jupyter_graphs-1.3.3.tar.gz
  • Upload date:
  • Size: 7.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for yfiles_jupyter_graphs-1.3.3.tar.gz
Algorithm Hash digest
SHA256 83aa6d51c15ab4a1aac1914fdcc5e75c42dd150f8d25ac84ce7113dbcdc5ece1
MD5 7abbe42a5c6a34971ab8236c3ce6f3ba
BLAKE2b-256 8b7e0f754a8ada0abf6961567f1b0b195105b4d1a9c05ff6f81b34ddfc5156e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yfiles_jupyter_graphs-1.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 89d18f217fcba664b1e30549e0077530875b64ba0d37057a53e09bcd571aaa22
MD5 10825fc536d53c98bd3dde7a916292ea
BLAKE2b-256 6a6183542bf54b0ac751d91ae1f33094a410fbdcf65d904bd44a84a5fb02fe74

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