diff --git a/README.md b/README.md index b6b3c81..1e86f7d 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ The widget is supported in the default Jupyter environments, but also in other e ![A screenshot showing the yFiles graph widget in a jupyter lab notebook](https://raw.githubusercontent.com/yWorks/yfiles-jupyter-graphs/main/screenshots/yfiles-jupyter-graphs-introduction.png) +Try the [Introduction](https://github.com/yWorks/yfiles-jupyter-graphs/blob/main/examples/introduction.ipynb) notebook on Google Colab [here](https://colab.research.google.com/github/yWorks/yfiles-jupyter-graphs/blob/main/examples/introduction.ipynb). + ## Supported Environments - [JupyterLab or Jupyter Notebook](https://jupyter.org/) - [Visual Studio Code](https://code.visualstudio.com/) @@ -70,26 +72,33 @@ You can find the full documentation [here](https://yworks.github.io/yfiles-jupyt + See Node Neighborhood
Try Notebook on Google Colab + Choose Graph Layout
Try Notebook on Google Colab + Investigate Nodes or Edges Data
Try Notebook on Google Colab + Search for Nodes or Edges
Try Notebook on Google Colab + Import Graph Data
Try Notebook on Google Colab + Make Data Dependent Property Changes
Try Notebook on Google Colab
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](https://github.com/yWorks/yfiles-jupyter-graphs/tree/master/examples). +### Google Colab Examples +You can try the [example notebooks](https://github.com/yWorks/yfiles-jupyter-graphs/tree/master/examples) in Google Colab by +opening GitHub notebook URL: `https://colab.research.google.com/github/yWorks/yfiles-jupyter-graphs/blob/main/examples/`. + +For example the [Introduction](https://github.com/yWorks/yfiles-jupyter-graphs/blob/main/examples/introduction.ipynb) notebook:
+https://colab.research.google.com/github/yWorks/yfiles-jupyter-graphs/blob/main/examples/introduction.ipynb + ## Documentation You can find the documentation [here](https://yworks.github.io/yfiles-jupyter-graphs/). diff --git a/examples/edge_direction_mapping.ipynb b/examples/edge_direction_mapping.ipynb index 23670af..03039e3 100644 --- a/examples/edge_direction_mapping.ipynb +++ b/examples/edge_direction_mapping.ipynb @@ -8,6 +8,22 @@ "# Edge Direction Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "925037b9-bed1-4af1-85e3-6a1f2431a345", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -202,7 +217,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -216,7 +231,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/element_color_mapping.ipynb b/examples/element_color_mapping.ipynb index 0e52135..4de76eb 100644 --- a/examples/element_color_mapping.ipynb +++ b/examples/element_color_mapping.ipynb @@ -10,6 +10,22 @@ "# Element Color Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "4eb58ba1-1e95-4090-b2b8-e117e35561c5", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -17,8 +33,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -303,7 +318,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -317,7 +332,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/element_label_mapping.ipynb b/examples/element_label_mapping.ipynb index 573a985..ef88ceb 100644 --- a/examples/element_label_mapping.ipynb +++ b/examples/element_label_mapping.ipynb @@ -8,6 +8,22 @@ "# Element Label Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "090ffda3-e803-44da-b926-6771540c13ad", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -271,7 +286,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -285,7 +300,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/element_property_mapping.ipynb b/examples/element_property_mapping.ipynb index 842cbeb..6ee6711 100644 --- a/examples/element_property_mapping.ipynb +++ b/examples/element_property_mapping.ipynb @@ -8,6 +8,22 @@ "# Element Property Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "74bcc1fa-8c3d-4050-bd8b-9858a90a2523", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -300,7 +315,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -314,7 +329,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/element_size_mapping.ipynb b/examples/element_size_mapping.ipynb index 903774b..d424c0c 100644 --- a/examples/element_size_mapping.ipynb +++ b/examples/element_size_mapping.ipynb @@ -8,6 +8,22 @@ "# Element Size Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "cd43c610-432f-402c-bc09-abd9df462d42", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -280,7 +295,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -294,7 +309,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/import_from_graph_tool.ipynb b/examples/import_from_graph_tool.ipynb index a323ff5..c425205 100644 --- a/examples/import_from_graph_tool.ipynb +++ b/examples/import_from_graph_tool.ipynb @@ -1,5 +1,21 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "2291dc52-fd28-4cf1-b3e9-32016d073989", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -141,7 +157,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -155,7 +171,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/import_from_graphviz.ipynb b/examples/import_from_graphviz.ipynb index b00e821..4dad126 100644 --- a/examples/import_from_graphviz.ipynb +++ b/examples/import_from_graphviz.ipynb @@ -1,5 +1,31 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "9cf4d71b-a07b-483c-ac76-3450eb1fc147", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "1f6c3685-9e5c-474d-a6e2-4b4ed8016d0d", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install pygraphviz --quiet" + ] + }, { "cell_type": "code", "execution_count": null, @@ -173,7 +199,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -187,7 +213,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/import_from_igraph.ipynb b/examples/import_from_igraph.ipynb index 67a90bd..003f2d8 100644 --- a/examples/import_from_igraph.ipynb +++ b/examples/import_from_igraph.ipynb @@ -1,5 +1,31 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "6e5b3e93-0385-4033-b6b6-ca8b390c6b04", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6b936612-cac0-4ed8-a55a-f90bde45ca86", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install igraph --quiet" + ] + }, { "cell_type": "code", "execution_count": null, @@ -90,7 +116,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -104,7 +130,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/import_from_neo4j.ipynb b/examples/import_from_neo4j.ipynb index 7ad3192..6d6ccf7 100644 --- a/examples/import_from_neo4j.ipynb +++ b/examples/import_from_neo4j.ipynb @@ -1,5 +1,31 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "e63aeede-16ab-45e2-bc39-8e1702cd06c7", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "80c3450b-2295-4725-b4af-611a3d700efb", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install neo4j --quiet" + ] + }, { "cell_type": "code", "execution_count": null, @@ -70,7 +96,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.10" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/import_from_networkx.ipynb b/examples/import_from_networkx.ipynb index 04689a0..7e2a6e4 100644 --- a/examples/import_from_networkx.ipynb +++ b/examples/import_from_networkx.ipynb @@ -1,5 +1,31 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "f571ea76-6942-45fc-a1cc-c300c37f3be5", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "15403f63-a53d-4575-b9df-7b685eb0260f", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install networkx --quiet" + ] + }, { "cell_type": "code", "execution_count": null, @@ -170,7 +196,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -184,7 +210,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/import_from_rdflib.ipynb b/examples/import_from_rdflib.ipynb index 4cda4a4..8ca5156 100644 --- a/examples/import_from_rdflib.ipynb +++ b/examples/import_from_rdflib.ipynb @@ -20,7 +20,22 @@ "metadata": {}, "outputs": [], "source": [ - "%pip install rdflib networkx yfiles-jupyter-graphs\n" + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%pip install rdflib networkx --quiet\n" ] }, { @@ -83,7 +98,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.6" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/introduction.ipynb b/examples/introduction.ipynb index 56bd5fe..ce63c6d 100644 --- a/examples/introduction.ipynb +++ b/examples/introduction.ipynb @@ -7,6 +7,21 @@ "# Introduction" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -90,7 +105,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -104,7 +119,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/large-diagram.ipynb b/examples/large-diagram.ipynb index 999e1c1..a0061b0 100644 --- a/examples/large-diagram.ipynb +++ b/examples/large-diagram.ipynb @@ -8,6 +8,22 @@ "# Large Diagram" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "126b68ac-9f90-4e87-90a6-581c068986f3", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -94,7 +109,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -108,7 +123,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/layouts.ipynb b/examples/layouts.ipynb index 65ae275..f5f64e9 100644 --- a/examples/layouts.ipynb +++ b/examples/layouts.ipynb @@ -10,6 +10,22 @@ "# Graph Layouts" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "e6328173-3644-49e1-8cdb-c70df0ee957a", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -19,8 +35,7 @@ }, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -176,7 +191,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -190,7 +205,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/mapping_overloads.ipynb b/examples/mapping_overloads.ipynb index ad3b7ff..c6d36c4 100644 --- a/examples/mapping_overloads.ipynb +++ b/examples/mapping_overloads.ipynb @@ -8,6 +8,22 @@ "# Mapping Overloads" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "82dc1a8f-d56a-4c66-977d-cfc670ea4fc5", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": 1, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -406,7 +421,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -420,7 +435,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/neighborhood.ipynb b/examples/neighborhood.ipynb index bd1b308..db140c5 100644 --- a/examples/neighborhood.ipynb +++ b/examples/neighborhood.ipynb @@ -10,6 +10,22 @@ "# Import Graph Data" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "3766b6a7-7c12-4d67-846a-0b1385db482f", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -17,8 +33,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -114,7 +129,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -128,7 +143,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/neo4j-sample-gds-example.ipynb b/examples/neo4j-sample-gds-example.ipynb index e2431cf..483c564 100644 --- a/examples/neo4j-sample-gds-example.ipynb +++ b/examples/neo4j-sample-gds-example.ipynb @@ -1,5 +1,31 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "c1160ac1-f792-4158-b81a-b754b5bf554a", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "44de1d99-e6a0-453a-9cfe-61bb6b8e0e31", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install neo4j graphdatascience --quiet" + ] + }, { "cell_type": "markdown", "id": "e2f1a2a8-59c2-4be6-9adf-a6017b9437a9", @@ -228,7 +254,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.10" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/node_position_mapping.ipynb b/examples/node_position_mapping.ipynb index e82c203..93f6c31 100644 --- a/examples/node_position_mapping.ipynb +++ b/examples/node_position_mapping.ipynb @@ -8,6 +8,22 @@ "# Node Position Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "ccf01191-dd1f-47b1-9156-7ba6af2b9374", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -216,7 +231,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -230,7 +245,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/node_styles_mapping.ipynb b/examples/node_styles_mapping.ipynb index bee6af1..6948736 100644 --- a/examples/node_styles_mapping.ipynb +++ b/examples/node_styles_mapping.ipynb @@ -8,6 +8,22 @@ "# Node Styles Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "3b7bced2-c902-4a47-af3e-49c9df02ca70", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": 1, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -624,7 +639,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -638,7 +653,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" } }, "nbformat": 4, diff --git a/examples/node_type_mapping.ipynb b/examples/node_type_mapping.ipynb index c622fec..72ccfd7 100644 --- a/examples/node_type_mapping.ipynb +++ b/examples/node_type_mapping.ipynb @@ -8,6 +8,22 @@ "# Node Type Mapping" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "4bf37ec2-7ba3-4ded-a311-3d13252dc2a3", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -180,7 +196,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -194,7 +210,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/overview.ipynb b/examples/overview.ipynb index fbf5204..ef71727 100644 --- a/examples/overview.ipynb +++ b/examples/overview.ipynb @@ -8,6 +8,22 @@ "# Configure Overview" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "8fbee6e8-be87-4043-a3c7-d233b9e60738", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -190,7 +205,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -204,7 +219,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/sidebar.ipynb b/examples/sidebar.ipynb index 7414bd2..21d12ac 100644 --- a/examples/sidebar.ipynb +++ b/examples/sidebar.ipynb @@ -8,6 +8,22 @@ "# Configure Sidebar" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "1819fae0-6a8d-4bcb-9197-c3459950c3ad", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -163,7 +178,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -177,7 +192,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": { diff --git a/examples/widget_layout.ipynb b/examples/widget_layout.ipynb index 3e25876..dc67d49 100644 --- a/examples/widget_layout.ipynb +++ b/examples/widget_layout.ipynb @@ -8,6 +8,22 @@ "# Changing Widget Layout" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "03683dc3-6805-49cd-bf0a-b848b6d7c450", + "metadata": {}, + "outputs": [], + "source": [ + "%pip install yfiles_jupyter_graphs --quiet\n", + "try:\n", + " import google.colab\n", + " from google.colab import output\n", + " output.enable_custom_widget_manager()\n", + "except:\n", + " pass" + ] + }, { "cell_type": "code", "execution_count": null, @@ -15,8 +31,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%capture\n", - "!pip install networkx" + "%pip install networkx --quiet" ] }, { @@ -162,7 +177,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -176,7 +191,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.15" + "version": "3.11.3" }, "widgets": { "application/vnd.jupyter.widget-state+json": {