Skip to content

Commit 8c31397

Browse files
committed
Update example in Jupyter notebook
1 parent c6f467f commit 8c31397

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

example.ipynb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,26 @@
4242
" cache_type=\"hybrid\", # optionally cache the pipeline\n",
4343
")\n",
4444
"\n",
45-
"pipeline.visualize_graphviz_widget()"
45+
"dot_source = pipeline.visualize_graphviz(return_type=\"graphviz\").source"
4646
]
47+
},
48+
{
49+
"cell_type": "code",
50+
"execution_count": null,
51+
"metadata": {},
52+
"outputs": [],
53+
"source": [
54+
"from graphviz_anywidget import GraphvizWidget\n",
55+
"\n",
56+
"GraphvizWidget(dot_source=dot_source)"
57+
]
58+
},
59+
{
60+
"cell_type": "code",
61+
"execution_count": null,
62+
"metadata": {},
63+
"outputs": [],
64+
"source": []
4765
}
4866
],
4967
"metadata": {

0 commit comments

Comments
 (0)