|
22 | 22 | "id": "dabd7715", |
23 | 23 | "metadata": {}, |
24 | 24 | "outputs": [], |
25 | | - "source": [ |
26 | | - "%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n", |
27 | | - "%pip install --user --quiet setuptools\n", |
28 | | - "%pip install --user --no-warn-script-location --quiet dapi" |
29 | | - ] |
30 | | - }, |
31 | | - { |
32 | | - "cell_type": "code", |
33 | | - "execution_count": null, |
34 | | - "id": "c318e131", |
35 | | - "metadata": {}, |
36 | | - "outputs": [ |
37 | | - { |
38 | | - "name": "stdout", |
39 | | - "output_type": "stream", |
40 | | - "text": [ |
41 | | - "Old NumPy 1.24 installed!\n" |
42 | | - ] |
43 | | - }, |
44 | | - { |
45 | | - "name": "stderr", |
46 | | - "output_type": "stream", |
47 | | - "text": [ |
48 | | - "\n", |
49 | | - "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.1.1\u001b[0m\n", |
50 | | - "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n" |
51 | | - ] |
52 | | - } |
53 | | - ], |
54 | | - "source": [ |
55 | | - "import sys\n", |
56 | | - "import os\n", |
57 | | - "\n", |
58 | | - "print(\n", |
59 | | - " \"Old NumPy 1.24 installed!\"\n", |
60 | | - " if sys.version_info < (3, 10)\n", |
61 | | - " and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n", |
62 | | - " else \"Skipped (Python 3.10+)\"\n", |
63 | | - " if sys.version_info >= (3, 10)\n", |
64 | | - " else \"Install failed!\"\n", |
65 | | - ")" |
66 | | - ] |
67 | | - }, |
68 | | - { |
69 | | - "cell_type": "markdown", |
70 | | - "id": "1d36c1fb", |
71 | | - "metadata": {}, |
72 | | - "source": [ |
73 | | - "### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️" |
74 | | - ] |
75 | | - }, |
76 | | - { |
77 | | - "cell_type": "code", |
78 | | - "execution_count": 5, |
79 | | - "id": "8186b2c9", |
80 | | - "metadata": {}, |
81 | | - "outputs": [ |
82 | | - { |
83 | | - "name": "stdout", |
84 | | - "output_type": "stream", |
85 | | - "text": [ |
86 | | - "NumPy version: 2.0.2\n", |
87 | | - "DAPI version: unknown\n" |
88 | | - ] |
89 | | - } |
90 | | - ], |
91 | | - "source": [ |
92 | | - "import numpy as np\n", |
93 | | - "\n", |
94 | | - "print(\"NumPy version:\", np.__version__)\n", |
95 | | - "import dapi\n", |
96 | | - "\n", |
97 | | - "print(\"DAPI version:\", dapi.__version__)" |
98 | | - ] |
| 25 | + "source": "%pip install dapi --quiet" |
99 | 26 | }, |
100 | 27 | { |
101 | 28 | "cell_type": "code", |
|
0 commit comments