Skip to content

Commit a46e9a7

Browse files
committed
Add notes that pixel browsing does not work when running from JupyterLite.
1 parent 754f373 commit a46e9a7

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

docs/notebooks/color-images.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@
192192
"source": [
193193
"As we saw earlier, the image view is interactive. As you move the cursor over the image, the pixel coordinates and value are updated at the bottom of the window. The displayed pixel values are always in the range 0 to 255 which are minimum and maximum possible values for the `uint8` pixel data type.\n",
194194
"\n",
195+
"<p style=\"border:3px; background-color:#FF0000; padding: 1em; text-align: center;\">When running from JupyterLite in a browser tab this functionality does not work.</p>\n",
196+
"\n",
195197
"A toolbar provides some extra functionality. You can select a region to get an expanded view, pan that selected region around, change the zoom level, or revert to the original view."
196198
]
197199
},

docs/notebooks/greyscale-images.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@
121121
"cell_type": "markdown",
122122
"metadata": {},
123123
"source": [
124-
"and the result is much the same, except the colors are now just black and white. It's a common convention that zero valued pixels are displayed as black. `idisp` has scaled the values in the array so that the biggest value, 1, is displayed as brightest white.\n",
124+
"and the result is much the same, except the colors are now just black and white. It's a common convention that zero-valued pixels are displayed as black. `idisp` has scaled the values in the array so that the biggest value, 1, is displayed as brightest white.\n",
125125
"\n",
126-
"As you drift the cursor over the image the pixel coordinates and pixel values are displayed beneath the image. A subtle difference is that the pixel coordinates are always integers, and the datatype of the pixel is also shown. "
126+
"As you drift the cursor over the image the pixel coordinates and pixel values are displayed beneath the image. A subtle difference is that the pixel coordinates are always integers, and the datatype of the pixel is also shown. \n",
127+
"\n",
128+
"<p style=\"border:3px; background-color:#FF0000; padding: 1em; text-align: center;\">When running from JupyterLite in a browser tab this functionality does not work.</p>"
127129
]
128130
},
129131
{
@@ -137,7 +139,7 @@
137139
"cell_type": "markdown",
138140
"metadata": {},
139141
"source": [
140-
"<p style=\"border:3px; background-color:#FF0000; padding: 1em; text-align: center;\">Note that in this section we will consider grey scale or monochrome images. Have a look at the color-images.ipynb notebook in this folder.</p>\n",
142+
"**In this section we will consider grey scale or monochrome images. Have a look at the color-images.ipynb notebook in this folder.**\n",
141143
"\n",
142144
"# Images and pixels\n",
143145
"\n",

0 commit comments

Comments
 (0)