diff --git a/docs/examples/pipeline/query_pipeline_sql.ipynb b/docs/examples/pipeline/query_pipeline_sql.ipynb index 6eb5c05637c4295ed496c740645ad808cdbeb219..a77ceecca7f3eefbaa9aa78de42d52a8ae263c06 100644 --- a/docs/examples/pipeline/query_pipeline_sql.ipynb +++ b/docs/examples/pipeline/query_pipeline_sql.ipynb @@ -570,8 +570,35 @@ "from pyvis.network import Network\n", "\n", "net = Network(notebook=True, cdn_resources=\"in_line\", directed=True)\n", - "net.from_nx(qp.dag)\n", - "net.show(\"text2sql_dag.html\")" + "net.from_nx(qp.dag)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e1843ac9", + "metadata": {}, + "outputs": [], + "source": [ + "# Save the network as \"text2sql_dag.html\"\n", + "net.write_html(\"text2sql_dag.html\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b4830b08", + "metadata": {}, + "outputs": [], + "source": [ + "from IPython.display import display, HTML\n", + "\n", + "# Read the contents of the HTML file\n", + "with open(\"text2sql_dag.html\", \"r\") as file:\n", + " html_content = file.read()\n", + "\n", + "# Display the HTML content\n", + "display(HTML(html_content))" ] }, {