Skip to content

Commit 57e3f01

Browse files
committed
final nb check
1 parent 0ece678 commit 57e3f01

File tree

3 files changed

+146
-187
lines changed

3 files changed

+146
-187
lines changed

image.ipynb

+55-106
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
"\n",
4646
"Using Jupyter remote frame buffer: https://github.com/vispy/jupyter_rfb\n",
4747
"\n",
48-
"Rendering all being done on remote GPU. We are only displaying a rasterized image in the Jupyter canvas."
48+
"Rendering all being done on remote GPU. We are only displaying a rasterized image in the Jupyter canvas.\n",
49+
"\n",
50+
"### GPU: Nvidia RTX 3090\n",
51+
"### CPU: AMD Ryzen 16 core (5950X)\n"
4952
]
5053
},
5154
{
@@ -68,7 +71,7 @@
6871
},
6972
{
7073
"cell_type": "code",
71-
"execution_count": 10,
74+
"execution_count": 1,
7275
"id": "9aeb2e39-cc13-4662-ada0-cfed7ee2b26c",
7376
"metadata": {
7477
"tags": []
@@ -83,7 +86,7 @@
8386
},
8487
{
8588
"cell_type": "code",
86-
"execution_count": 11,
89+
"execution_count": 2,
8790
"id": "fb57c3d3-f20d-4d88-9e7a-04b9309bc637",
8891
"metadata": {
8992
"tags": []
@@ -106,7 +109,7 @@
106109
},
107110
{
108111
"cell_type": "code",
109-
"execution_count": 12,
112+
"execution_count": 3,
110113
"id": "99f0c624-85a6-4a42-92b0-30b0b04075b4",
111114
"metadata": {
112115
"tags": []
@@ -118,7 +121,7 @@
118121
},
119122
{
120123
"cell_type": "code",
121-
"execution_count": 13,
124+
"execution_count": 4,
122125
"id": "630e4762-de01-47fe-be9d-547182a1fbf9",
123126
"metadata": {
124127
"tags": []
@@ -146,7 +149,7 @@
146149
},
147150
{
148151
"cell_type": "code",
149-
"execution_count": 14,
152+
"execution_count": 5,
150153
"id": "237823b7-e2c0-4e2f-9ee8-e3fc2b4453c4",
151154
"metadata": {
152155
"tags": []
@@ -155,7 +158,7 @@
155158
{
156159
"data": {
157160
"application/vnd.jupyter.widget-view+json": {
158-
"model_id": "b82eaf5ed8ef4e72a5168a6a5afc8e8a",
161+
"model_id": "a467572f837444d2bd1ebac5fbdaec9b",
159162
"version_major": 2,
160163
"version_minor": 0
161164
},
@@ -211,7 +214,7 @@
211214
},
212215
{
213216
"cell_type": "code",
214-
"execution_count": 38,
217+
"execution_count": 6,
215218
"id": "de816c88-1c4a-4071-8a5e-c46c93671ef5",
216219
"metadata": {
217220
"tags": []
@@ -237,7 +240,7 @@
237240
},
238241
{
239242
"cell_type": "code",
240-
"execution_count": 39,
243+
"execution_count": 7,
241244
"id": "83b2db1b-2783-4e89-bcf3-66bb6e09e18a",
242245
"metadata": {
243246
"tags": []
@@ -258,7 +261,7 @@
258261
},
259262
{
260263
"cell_type": "code",
261-
"execution_count": 40,
264+
"execution_count": 8,
262265
"id": "3e298c1c-7551-4401-ade0-b9af7d2bbe23",
263266
"metadata": {
264267
"tags": []
@@ -278,7 +281,7 @@
278281
},
279282
{
280283
"cell_type": "code",
281-
"execution_count": 41,
284+
"execution_count": 9,
282285
"id": "ea100318-023c-4963-b859-8c2a8fcce301",
283286
"metadata": {
284287
"tags": []
@@ -291,7 +294,7 @@
291294
},
292295
{
293296
"cell_type": "code",
294-
"execution_count": 42,
297+
"execution_count": 10,
295298
"id": "a1320f9f-fff5-4b9b-9a49-0695042ab8ab",
296299
"metadata": {
297300
"tags": []
@@ -303,7 +306,7 @@
303306
},
304307
{
305308
"cell_type": "code",
306-
"execution_count": 43,
309+
"execution_count": 11,
307310
"id": "4c369d3d-7219-4231-80cd-ce82b6a67a20",
308311
"metadata": {
309312
"tags": []
@@ -337,7 +340,7 @@
337340
},
338341
{
339342
"cell_type": "code",
340-
"execution_count": 44,
343+
"execution_count": 12,
341344
"id": "aadd757f-6379-4f52-a709-46aa57c56216",
342345
"metadata": {
343346
"tags": []
@@ -346,7 +349,7 @@
346349
{
347350
"data": {
348351
"application/vnd.jupyter.widget-view+json": {
349-
"model_id": "d284e575b6ef4aa29aee138feb152a34",
352+
"model_id": "7eb6c0c85c334acd8765084783e4e983",
350353
"version_major": 2,
351354
"version_minor": 0
352355
},
@@ -356,6 +359,14 @@
356359
},
357360
"metadata": {},
358361
"output_type": "display_data"
362+
},
363+
{
364+
"name": "stderr",
365+
"output_type": "stream",
366+
"text": [
367+
"/home/clewis7/repos/fastplotlib/fastplotlib/graphics/_features/_base.py:34: UserWarning: converting float64 array to float32\n",
368+
" warn(f\"converting {array.dtype} array to float32\")\n"
369+
]
359370
}
360371
],
361372
"source": [
@@ -389,7 +400,7 @@
389400
},
390401
{
391402
"cell_type": "code",
392-
"execution_count": 45,
403+
"execution_count": 13,
393404
"id": "99d234c6-220a-4093-a6a0-6036d2e40000",
394405
"metadata": {
395406
"tags": []
@@ -420,7 +431,7 @@
420431
},
421432
{
422433
"cell_type": "code",
423-
"execution_count": 46,
434+
"execution_count": 14,
424435
"id": "5139ad7c-2d72-402b-9239-27dcf5bd0c89",
425436
"metadata": {
426437
"tags": []
@@ -433,7 +444,7 @@
433444
},
434445
{
435446
"cell_type": "code",
436-
"execution_count": 47,
447+
"execution_count": 15,
437448
"id": "207632a8-9f7d-4931-bebc-b43a49e63b9e",
438449
"metadata": {
439450
"tags": []
@@ -442,7 +453,7 @@
442453
{
443454
"data": {
444455
"application/vnd.jupyter.widget-view+json": {
445-
"model_id": "7055881e2efa4143be1a3cdec4f26bf1",
456+
"model_id": "7e30cb38619144d59d4e9e98b8ef0e7f",
446457
"version_major": 2,
447458
"version_minor": 0
448459
},
@@ -456,15 +467,15 @@
456467
{
457468
"data": {
458469
"application/vnd.jupyter.widget-view+json": {
459-
"model_id": "1e1d7a4510f94877b53ee9a9dac3b34c",
470+
"model_id": "53d54426e28d46f7bc92ba32ab587572",
460471
"version_major": 2,
461472
"version_minor": 0
462473
},
463474
"text/plain": [
464475
"VBox(children=(VBox(children=(JupyterWgpuCanvas(), HBox(children=(Button(icon='expand-arrows-alt', layout=Layo…"
465476
]
466477
},
467-
"execution_count": 47,
478+
"execution_count": 15,
468479
"metadata": {},
469480
"output_type": "execute_result"
470481
}
@@ -564,18 +575,26 @@
564575
"This is `[t, z, x, y]`"
565576
]
566577
},
578+
{
579+
"cell_type": "markdown",
580+
"id": "a1992f2b-abb5-42c8-990b-78d3a1698811",
581+
"metadata": {},
582+
"source": [
583+
"## View each plane in a separate subplot"
584+
]
585+
},
567586
{
568587
"cell_type": "code",
569-
"execution_count": 19,
570-
"id": "7a76119e-2035-48ba-9a88-a8a6f64a3365",
588+
"execution_count": 38,
589+
"id": "770f8242-e8ff-40fc-86c3-9d44abca85d6",
571590
"metadata": {
572591
"tags": []
573592
},
574593
"outputs": [
575594
{
576595
"data": {
577596
"application/vnd.jupyter.widget-view+json": {
578-
"model_id": "1e0a947e28224892a5653a3ed560d67b",
597+
"model_id": "8a1b7240246b4128b4c39d49aeb5d17e",
579598
"version_major": 2,
580599
"version_minor": 0
581600
},
@@ -588,26 +607,18 @@
588607
}
589608
],
590609
"source": [
610+
"# get a list of txy arrays for each plane\n",
611+
"planes = [movie[:, i] for i in range(movie.shape[1])]\n",
612+
"\n",
591613
"iw = fpl.ImageWidget(\n",
592-
" data=movie,\n",
593-
" vmin_vmax_sliders=True,\n",
594-
" dims_order=\"tzxy\",\n",
595-
" slider_dims=[\"t\", \"z\"],\n",
596-
" grid_plot_kwargs={\"size\": (600, 500)},\n",
614+
" data=planes,\n",
615+
" vmin_vmax_sliders=False,\n",
616+
" grid_plot_kwargs={\"size\": (600, 500), \"controllers\": \"sync\"},\n",
597617
" cmap=\"gnuplot2\"\n",
598-
")"
599-
]
600-
},
601-
{
602-
"cell_type": "code",
603-
"execution_count": 20,
604-
"id": "6cac96f4-a8e9-481a-8014-2d2570c04db3",
605-
"metadata": {
606-
"tags": []
607-
},
608-
"outputs": [],
609-
"source": [
610-
"sc = Sidecar(title=\"zebra fish\")\n",
618+
")\n",
619+
"\n",
620+
"\n",
621+
"sc = Sidecar(title=\"zfish planes\")\n",
611622
"\n",
612623
"with sc:\n",
613624
" display(iw.show())"
@@ -625,7 +636,7 @@
625636
},
626637
{
627638
"cell_type": "code",
628-
"execution_count": 36,
639+
"execution_count": 21,
629640
"id": "d29c857c-78f8-4bc5-a00f-83d9985eaeb7",
630641
"metadata": {
631642
"tags": []
@@ -638,69 +649,7 @@
638649
},
639650
{
640651
"cell_type": "code",
641-
"execution_count": 37,
642-
"id": "86261ca9-1cd8-43ee-ad72-7a05b3489510",
643-
"metadata": {
644-
"tags": []
645-
},
646-
"outputs": [],
647-
"source": [
648-
"iw.gridplot.close()\n",
649-
"sc.close()"
650-
]
651-
},
652-
{
653-
"cell_type": "markdown",
654-
"id": "a1992f2b-abb5-42c8-990b-78d3a1698811",
655-
"metadata": {},
656-
"source": [
657-
"## View each plane in a separate subplot"
658-
]
659-
},
660-
{
661-
"cell_type": "code",
662-
"execution_count": 38,
663-
"id": "770f8242-e8ff-40fc-86c3-9d44abca85d6",
664-
"metadata": {
665-
"tags": []
666-
},
667-
"outputs": [
668-
{
669-
"data": {
670-
"application/vnd.jupyter.widget-view+json": {
671-
"model_id": "8a1b7240246b4128b4c39d49aeb5d17e",
672-
"version_major": 2,
673-
"version_minor": 0
674-
},
675-
"text/plain": [
676-
"RFBOutputContext()"
677-
]
678-
},
679-
"metadata": {},
680-
"output_type": "display_data"
681-
}
682-
],
683-
"source": [
684-
"# get a list of txy arrays for each plane\n",
685-
"planes = [movie[:, i] for i in range(movie.shape[1])]\n",
686-
"\n",
687-
"iw = fpl.ImageWidget(\n",
688-
" data=planes,\n",
689-
" vmin_vmax_sliders=False,\n",
690-
" grid_plot_kwargs={\"size\": (600, 500), \"controllers\": \"sync\"},\n",
691-
" cmap=\"gnuplot2\"\n",
692-
")\n",
693-
"\n",
694-
"\n",
695-
"sc = Sidecar(title=\"zfish planes\")\n",
696-
"\n",
697-
"with sc:\n",
698-
" display(iw.show())"
699-
]
700-
},
701-
{
702-
"cell_type": "code",
703-
"execution_count": 39,
652+
"execution_count": 22,
704653
"id": "e49e7b96-c1a7-4c1f-956a-1bab482b0ce0",
705654
"metadata": {
706655
"tags": []

interactivity.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
{
113113
"data": {
114114
"application/vnd.jupyter.widget-view+json": {
115-
"model_id": "a1cecb0a8f4b408783ae703c37624f2e",
115+
"model_id": "c392ec33c3e5471786a54249d9a343ae",
116116
"version_major": 2,
117117
"version_minor": 0
118118
},
@@ -134,7 +134,7 @@
134134
{
135135
"data": {
136136
"application/vnd.jupyter.widget-view+json": {
137-
"model_id": "0136aea73e49401b92d017b06ad14fa9",
137+
"model_id": "e0031da71f6641b0a4dab8565c7a2050",
138138
"version_major": 2,
139139
"version_minor": 0
140140
},

0 commit comments

Comments
 (0)