Skip to content

Commit 0630d6e

Browse files
Add missing packages (for graph drawing)
1 parent 2f49cf2 commit 0630d6e

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

notebooks/99_plow_truck.ipynb

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,31 @@
2525
"execution_count": 1,
2626
"id": "7eb64415",
2727
"metadata": {},
28+
"outputs": [
29+
{
30+
"name": "stdout",
31+
"output_type": "stream",
32+
"text": [
33+
"The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.\n",
34+
"Please visit http://www.java.com for information on installing Java.\n",
35+
"\n",
36+
"zsh:1: command not found: pip\n"
37+
]
38+
}
39+
],
40+
"source": [
41+
"!apt install libgraphviz-dev\n",
42+
"!pip install pygraphviz\n",
43+
"import networkx as nx"
44+
]
45+
},
46+
{
47+
"cell_type": "code",
48+
"execution_count": 6,
49+
"id": "c6c7b957",
50+
"metadata": {},
2851
"outputs": [],
2952
"source": [
30-
"import networkx as nx\n",
31-
"\n",
3253
"grid = nx.MultiGraph(nx.grid_2d_graph(5, 5))\n",
3354
"grid = nx.eulerize(grid)\n",
3455
"\n",
@@ -39,15 +60,15 @@
3960
},
4061
{
4162
"cell_type": "markdown",
42-
"id": "7df9a218",
63+
"id": "3c7b893d",
4364
"metadata": {},
4465
"source": [
4566
"![](plow_truck_grid.png)"
4667
]
4768
},
4869
{
4970
"cell_type": "code",
50-
"execution_count": 2,
71+
"execution_count": 7,
5172
"id": "5a3767fe",
5273
"metadata": {},
5374
"outputs": [

0 commit comments

Comments
 (0)