Package: yfiles-jupyter-graphs
A graph diagram visualization widget for Jupyter Notebooks and Labs powered byyFiles for HTML.Easily visualize graphs from various sources:Networkx✅,igraph✅,neo4j✅,pygraphviz✅, and any structured Python dictionaries and lists. Many more formats supported indirectly viaNetworkx imports!The widget is supported in the default Jupyter environments, but also in other environments like VS Code or Google Colab.Try theIntroductionnotebook on Google Colabhere.Supported EnvironmentsJupyterLab or Jupyter NotebookVisual Studio CodeGoogle ColaboratoryGoogle Vertex AI WorkbenchGoogle DataprocAzure Machine Learning Studio NotebooksAmazon SageMakerJust try it in your preferred platform for Jupyter notebooksRequirementspython>= 3.6jupyternotebook or labipywidgets>= 7.6.0InstallationIf you already have Jupyter installed, justpip installthe prebuilt extension from thePython Package Index.pipinstallyfiles_jupyter_graphsIf you want to start clean and get a fresh new Jupyter Lab with the widget readily installed and available, you can usedocker, too:Form a shell, create a docker image that contains all that is required:mkdiryfiles-jupyter&&cdyfiles-jupyterecho-e"FROM jupyter/scipy-notebook\nRUN pip install yfiles-jupyter-graphs">Dockerfile
dockerbuild-tyfiles-jupyter-graphs-on-docker.(the above has been tested successfully withscipy-notebook:lab-3.4.7andyfiles-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:dockerrun-it-p8888:8888--nameyfiles-jupyteryfiles-jupyter-graphs-on-dockerUsageIn 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"""fromyfiles_jupyter_graphsimportGraphWidget# shows empty widgetGraphWidget()You can find the full documentationhere.FeaturesSee Node NeighborhoodChoose Graph LayoutInvestigate Nodes or Edges DataSearch for Nodes or EdgesImport Graph DataMake Data Dependent Property ChangesFor example code lookhere.Google Colab ExamplesYou can try theexample notebooksin Google Colab by
opening GitHub notebook URL:https://colab.research.google.com/github/yWorks/yfiles-jupyter-graphs/blob/main/examples/<notebook.ipynb>.For example theIntroductionnotebook:https://colab.research.google.com/github/yWorks/yfiles-jupyter-graphs/blob/main/examples/01_introduction.ipynbDocumentationYou can find the documentationhere.Code of ConductThis project and everyone participating in it is governed by theCode of Conduct.
By participating, you are expected to uphold this code.
Please report unacceptable behavior tocontact@yworks.com.FeedbackThis 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 tosearch for existing issuesfirst
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.
Seeissues.DependenciesyFiles for HTML@ctrl/tinycolor@jupyter-widgets/base@mdi/jsVuevue-json-viewerLicenseSeeLICENSEfile.