diff --git a/examples/integrations/itk/ThinPlateSpline.ipynb b/examples/integrations/itk/ThinPlateSpline.ipynb index 5af3a8c0..3ea7f1c1 100644 --- a/examples/integrations/itk/ThinPlateSpline.ipynb +++ b/examples/integrations/itk/ThinPlateSpline.ipynb @@ -21,7 +21,7 @@ "source": [ "import sys, os\n", "\n", - "!{sys.executable} -m pip install -q \"itk>=5.3.0\" \"itkwidgets[all]>=1.0a21\"" + "!{sys.executable} -m pip install -q tqdm pooch \"itk>=5.3.0\" \"itkwidgets[all]>=1.0a21\"" ] }, { @@ -29,15 +29,7 @@ "execution_count": 2, "id": "67df7916-4a81-4880-b575-f65dfab17bd5", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:109.)\n" - ] - } - ], + "outputs": [], "source": [ "import itk\n", "import pooch\n", @@ -47,22 +39,22 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 6, "id": "dca03164-73f6-41fb-abd2-bb9b76f2fa74", "metadata": {}, "outputs": [], "source": [ "# Download data\n", "files = pooch.retrieve(\n", - " url='https://examples.itk.org/src/core/transform/deformavolumewithathinplatespline/DeformAVolumeWithAThinPlateSpline.zip',\n", - " known_hash='sha256:f01ea2e7fc91cc8e832397e46b18d2b62b74de306a5ba7a4d441837aaeea7e8d',\n", + " url='https://bafybeidii6e4zhuswkhw7tm3dalmfw5yt4mja5yf3gb7t4jur3rdgdecve.ipfs.w3s.link/ipfs/bafybeidii6e4zhuswkhw7tm3dalmfw5yt4mja5yf3gb7t4jur3rdgdecve/DeformAVolumeWithAThinPlateSpline.zip',\n", + " known_hash='sha256:d267f9216d11c3f953b3a2601f38d1434ab97c17834dca0ad1b3ff558226c9c1',\n", " processor=pooch.Unzip(), path=\"./\", fname=\"ThinPlateSpline\", progressbar=True)\n", "file_path = os.path.commonpath(files)" ] }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 7, "id": "53b5b965-497e-46b7-8c14-d157ff5fed4f", "metadata": {}, "outputs": [], @@ -76,7 +68,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 8, "id": "2b3e6002-73f1-4971-8d43-b4a20681635b", "metadata": {}, "outputs": [], @@ -87,7 +79,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 9, "id": "f9bcdbb3-6140-4a0e-b654-446438761356", "metadata": {}, "outputs": [], @@ -102,7 +94,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 12, "id": "d2056fee-e695-43b3-abfb-156e5d749c4d", "metadata": {}, "outputs": [ @@ -110,11 +102,11 @@ "data": { "text/html": [ "\n", - " \n", + " \n", " \n", @@ -130,7 +122,7 @@ { "data": { "application/javascript": [ - "window.connectPlugin && window.connectPlugin(\"24162cfb-f786-4fe2-84e6-cdbbe0865546\")" + "window.connectPlugin && window.connectPlugin(\"73c219ba-0b2f-4e68-a934-de0708a96ab7\")" ], "text/plain": [ "" @@ -142,7 +134,7 @@ { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ "" @@ -154,21 +146,21 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 7, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "view(point_sets=source_landmarks)" + "view(point_set=source_landmarks)" ] }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 13, "id": "43d2f0b2-8268-424c-83c2-cc932e3ea598", "metadata": {}, "outputs": [], @@ -183,7 +175,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 15, "id": "bf7eefb4-ee5b-4557-8e4a-fa660f7444ad", "metadata": {}, "outputs": [ @@ -191,11 +183,11 @@ "data": { "text/html": [ "\n", - " \n", + " \n", " \n", @@ -211,7 +203,7 @@ { "data": { "application/javascript": [ - "window.connectPlugin && window.connectPlugin(\"24162cfb-f786-4fe2-84e6-cdbbe0865546\")" + "window.connectPlugin && window.connectPlugin(\"73c219ba-0b2f-4e68-a934-de0708a96ab7\")" ], "text/plain": [ "" @@ -223,7 +215,7 @@ { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ "" @@ -235,21 +227,21 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 9, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "view(point_sets=target_landmarks)" + "view(point_set=target_landmarks)" ] }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 16, "id": "717e7802-99a8-4b18-8335-6f753153286a", "metadata": {}, "outputs": [], @@ -261,7 +253,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 17, "id": "3795053f-9539-4148-a274-e0cb6df49c35", "metadata": {}, "outputs": [ @@ -269,11 +261,11 @@ "data": { "text/html": [ "\n", - " \n", + " \n", " \n", @@ -289,7 +281,7 @@ { "data": { "application/javascript": [ - "window.connectPlugin && window.connectPlugin(\"24162cfb-f786-4fe2-84e6-cdbbe0865546\")" + "window.connectPlugin && window.connectPlugin(\"73c219ba-0b2f-4e68-a934-de0708a96ab7\")" ], "text/plain": [ "" @@ -301,7 +293,7 @@ { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ "" @@ -313,10 +305,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 11, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -327,7 +319,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 18, "id": "290df31a-3397-40da-9449-fea1b2b0da40", "metadata": {}, "outputs": [], @@ -342,7 +334,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 19, "id": "5998ec2c-ffda-474f-9c2a-1c872a457afc", "metadata": {}, "outputs": [], @@ -352,7 +344,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 20, "id": "890bad50-b683-4f85-9a32-800283f272d5", "metadata": {}, "outputs": [ @@ -360,11 +352,11 @@ "data": { "text/html": [ "\n", - " \n", + " \n", " \n", @@ -380,7 +372,7 @@ { "data": { "application/javascript": [ - "window.connectPlugin && window.connectPlugin(\"24162cfb-f786-4fe2-84e6-cdbbe0865546\")" + "window.connectPlugin && window.connectPlugin(\"73c219ba-0b2f-4e68-a934-de0708a96ab7\")" ], "text/plain": [ "" @@ -392,7 +384,7 @@ { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ "" @@ -404,10 +396,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 14, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -418,7 +410,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 21, "id": "da10ed4c-5a87-40c3-b90a-2bae4abb5a20", "metadata": {}, "outputs": [], @@ -429,7 +421,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 22, "id": "7aa317d6-f43b-4682-83e3-fe0f95b38e01", "metadata": {}, "outputs": [ @@ -437,11 +429,11 @@ "data": { "text/html": [ "\n", - " \n", + " \n", " \n", @@ -457,7 +449,7 @@ { "data": { "application/javascript": [ - "window.connectPlugin && window.connectPlugin(\"24162cfb-f786-4fe2-84e6-cdbbe0865546\")" + "window.connectPlugin && window.connectPlugin(\"73c219ba-0b2f-4e68-a934-de0708a96ab7\")" ], "text/plain": [ "" @@ -469,7 +461,7 @@ { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ "" @@ -481,10 +473,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 16, + "execution_count": 22, "metadata": {}, "output_type": "execute_result" } @@ -518,7 +510,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.10" + "version": "3.9.12" } }, "nbformat": 4,