Commit 020880b2 authored by Romain Casati's avatar Romain Casati
Browse files

Update examples to Basthon-Kernel v0.15.0.

parent 04199b24
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"import graphviz","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"dot = \"\"\"digraph g {\n\nnode [shape = circle,\n style = filled,\n color = grey]\n\nnode [fillcolor = red]\na\n\nnode [fillcolor = green]\nb c d\n\nnode [fillcolor = orange]\n\nedge [color = grey]\na -> {b c d}\nb -> {e f g h i j}\nc -> {k l m n o p}\nd -> {q r s t u v}\n}\"\"\"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"graphviz.from_string(dot)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"for engine in ('dot', 'neato', 'twopi', 'circo'):\n display(graphviz.from_string(dot, engine=engine))","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"}},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"import graphviz\nimport basthon","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"dot = \"\"\"digraph g {\n\nnode [shape = circle,\n style = filled,\n color = grey]\n\nnode [fillcolor = red]\na\n\nnode [fillcolor = green]\nb c d\n\nnode [fillcolor = orange]\n\nedge [color = grey]\na -> {b c d}\nb -> {e f g h i j}\nc -> {k l m n o p}\nd -> {q r s t u v}\n}\"\"\"","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"graphviz.from_string(dot)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"for engine in ('dot', 'neato', 'twopi', 'circo'):\n basthon.display(graphviz.from_string(dot, engine=engine))","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"}},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment