Selaa lähdekoodia

Update example notebook.

Brian E. Granger 7 vuotta sitten
vanhempi
commit
3b61c38642
1 muutettua tiedostoa jossa 9 lisäystä ja 8 poistoa
  1. 9 8
      examples/notebooks/OutputExamples.ipynb

+ 9 - 8
examples/notebooks/OutputExamples.ipynb

@@ -450,6 +450,13 @@
     "img"
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Set the image metadata:"
+   ]
+  },
   {
    "cell_type": "code",
    "execution_count": 63,
@@ -474,7 +481,8 @@
    "source": [
     "img2 = Image(\n",
     "    \"https://apod.nasa.gov/apod/image/1707/GreatWallMilkyWay_Yu_1686.jpg\",\n",
-    "    width=100\n",
+    "    width=100,\n",
+    "    height=200\n",
     ")\n",
     "img2"
    ]
@@ -591,13 +599,6 @@
     "    print(10**10)\n",
     "    display(svg)"
    ]
-  },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "metadata": {},
-   "outputs": [],
-   "source": []
   }
  ],
  "metadata": {