Skip to content

Commit a4ab531

Browse files
committed
package installs
1 parent 11ce5a2 commit a4ab531

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

13_adjoint_calculations.ipynb

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "c40a1722",
6+
"id": "5165fa2d",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -526,14 +526,6 @@
526526
"outputs": [],
527527
"source": []
528528
},
529-
{
530-
"cell_type": "code",
531-
"execution_count": null,
532-
"id": "49ab1bc0-9706-4759-af26-8ee8c24f2ada",
533-
"metadata": {},
534-
"outputs": [],
535-
"source": []
536-
},
537529
{
538530
"cell_type": "markdown",
539531
"id": "ce79c50c-133e-4014-9d13-8e95bbf7fa9d",
@@ -563,24 +555,45 @@
563555
"pause_annotation()"
564556
]
565557
},
558+
{
559+
"cell_type": "markdown",
560+
"id": "d0aafb5e-3f62-4b39-bc51-a9aabca49c01",
561+
"metadata": {},
562+
"source": [
563+
"We now need to install a few packages that Colab don't install automatically:"
564+
]
565+
},
566566
{
567567
"cell_type": "code",
568568
"execution_count": null,
569-
"id": "31926022-2d1a-4726-a12a-0ea78f7a0538",
569+
"id": "7c1833ed-c09b-41a4-aff5-94c44989d1d8",
570570
"metadata": {},
571571
"outputs": [],
572572
"source": [
573-
"tape.visualise(\"tape.pdf\")"
573+
"!apt update\n",
574+
"!apt install graphviz libgraphviz-dev poppler-utils"
574575
]
575576
},
576577
{
577578
"cell_type": "code",
578579
"execution_count": null,
579580
"id": "78e43809-5941-4ffd-a52d-c0ebe6dfb465",
581+
"metadata": {
582+
"scrolled": true
583+
},
584+
"outputs": [],
585+
"source": [
586+
"!pip install graphviz pdf2image"
587+
]
588+
},
589+
{
590+
"cell_type": "code",
591+
"execution_count": null,
592+
"id": "31926022-2d1a-4726-a12a-0ea78f7a0538",
580593
"metadata": {},
581594
"outputs": [],
582595
"source": [
583-
"!pip install pdf2image"
596+
"tape.visualise(\"tape.pdf\")"
584597
]
585598
},
586599
{

0 commit comments

Comments
 (0)