A diagram visualization extension for JupyterLab and Jupyter Notebooks powered by yFiles for HTML
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!
- JupyterLab or Jupyter Notebook
- Visual Studio Code
- Google Colaboratory
- Just try it in your preferred platform for Jupyter notebooks
- python >= 3.6
- jupyter notebook or lab
- ipywidgets >= 7.6.0
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
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
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
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.
|See Node Neighborhood||Choose Graph Layout|
|Investigate Nodes or Edges Data||Search for Nodes or Edges|
|Import Graph Data||Make Data Dependent Property Changes|
For example code look here.
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 email@example.com.
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.
See LICENSE file.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for yfiles_jupyter_graphs-1.4.3.tar.gz
Hashes for yfiles_jupyter_graphs-1.4.3-py2.py3-none-any.whl