{ "cells": [ { "cell_type": "code", "execution_count": 2, "id": "e95388a9-93a6-4e29-bf44-e57a5c5683ab", "metadata": {}, "outputs": [], "source": [ "import piplite\n", "await piplite.install('itkwidgets==1.0a55')" ] }, { "cell_type": "code", "execution_count": 3, "id": "c3c5eb6e", "metadata": {}, "outputs": [], "source": [ "from itkwidgets import view\n", "import imageio.v2 as imageio" ] }, { "cell_type": "code", "execution_count": 4, "id": "1bc45207", "metadata": {}, "outputs": [], "source": [ "stent = imageio.imread('imageio:stent.npz')" ] }, { "cell_type": "code", "execution_count": 7, "id": "26582452", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/javascript": [ "window.connectPlugin && window.connectPlugin(\"60be8182-ce79-4fd4-8120-6255e63ca893\")" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "view(stent, rotate=True)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.7" }, "vscode": { "interpreter": { "hash": "f9f85f796d01129d0dd105a088854619f454435301f6ffec2fea96ecbd9be4ac" } } }, "nbformat": 4, "nbformat_minor": 5 }