|
618 | 618 | { |
619 | 619 | "data": { |
620 | 620 | "text/plain": [ |
621 | | - "['f', 'c', 'e', 'a', 'g', 'b', 'h', 'd']" |
| 621 | + "['c', 'h', 'f', 'a', 'g', 'd', 'b', 'e']" |
622 | 622 | ] |
623 | 623 | }, |
624 | 624 | "execution_count": null, |
|
1080 | 1080 | "execution_count": null, |
1081 | 1081 | "metadata": {}, |
1082 | 1082 | "outputs": [ |
| 1083 | + { |
| 1084 | + "name": "stdout", |
| 1085 | + "output_type": "stream", |
| 1086 | + "text": [ |
| 1087 | + "popenargs (['cmd', '/c', 'echo'],)\n", |
| 1088 | + "kwargs {'stdout': -1, 'stderr': -1}\n", |
| 1089 | + "popenargs (('cmd', '/c', 'pip', '--version'),)\n", |
| 1090 | + "kwargs {'stdout': -1, 'stderr': -1}\n", |
| 1091 | + "popenargs (['cmd', '/c', 'pip', '--version'],)\n", |
| 1092 | + "kwargs {'stdout': -1, 'stderr': -1}\n" |
| 1093 | + ] |
| 1094 | + }, |
1083 | 1095 | { |
1084 | 1096 | "data": { |
1085 | 1097 | "text/plain": [ |
1086 | | - "'D:\\\\programs'" |
| 1098 | + "'pip 21.0.1 from D:\\\\programs\\\\envs\\\\nbdev\\\\lib\\\\site-packages\\\\pip (python 3.8)'" |
1087 | 1099 | ] |
1088 | 1100 | }, |
1089 | 1101 | "execution_count": null, |
|
1093 | 1105 | ], |
1094 | 1106 | "source": [ |
1095 | 1107 | "run('echo', same_in_win=True)\n", |
1096 | | - "run('conda info --root', same_in_win=True)\n", |
1097 | | - "run(['conda', 'info', '--root'], same_in_win=True)" |
| 1108 | + "run('pip', '--version', same_in_win=True)\n", |
| 1109 | + "run(['pip', '--version'], same_in_win=True)" |
1098 | 1110 | ] |
1099 | 1111 | }, |
1100 | 1112 | { |
1101 | 1113 | "cell_type": "code", |
1102 | 1114 | "execution_count": null, |
1103 | 1115 | "metadata": {}, |
1104 | | - "outputs": [], |
| 1116 | + "outputs": [ |
| 1117 | + { |
| 1118 | + "name": "stdout", |
| 1119 | + "output_type": "stream", |
| 1120 | + "text": [ |
| 1121 | + "popenargs (['cmd', '/c', 'dir', '/p'],)\n", |
| 1122 | + "kwargs {'stdout': -1, 'stderr': -1}\n", |
| 1123 | + "popenargs (['cmd', '/c', 'dir', '/p'],)\n", |
| 1124 | + "kwargs {'stdout': -1, 'stderr': -1}\n", |
| 1125 | + "popenargs (('cmd', '/c', 'dir', '/p'),)\n", |
| 1126 | + "kwargs {'stdout': -1, 'stderr': -1}\n" |
| 1127 | + ] |
| 1128 | + } |
| 1129 | + ], |
1105 | 1130 | "source": [ |
1106 | 1131 | "if sys.platform == 'win32':\n", |
1107 | 1132 | " assert 'ipynb' in run('cmd /c dir /p')\n", |
|
1124 | 1149 | "cell_type": "code", |
1125 | 1150 | "execution_count": null, |
1126 | 1151 | "metadata": {}, |
1127 | | - "outputs": [], |
| 1152 | + "outputs": [ |
| 1153 | + { |
| 1154 | + "name": "stdout", |
| 1155 | + "output_type": "stream", |
| 1156 | + "text": [ |
| 1157 | + "popenargs (['cmd', '/c', 'findstr', 'asdfds', '00_test.ipynb'],)\n", |
| 1158 | + "kwargs {'stdout': -1, 'stderr': -1}\n" |
| 1159 | + ] |
| 1160 | + } |
| 1161 | + ], |
1128 | 1162 | "source": [ |
1129 | 1163 | "if sys.platform == 'win32':\n", |
1130 | 1164 | " test_eq(run('cmd /c findstr asdfds 00_test.ipynb', ignore_ex=True)[0], 1)\n", |
|
1143 | 1177 | "cell_type": "code", |
1144 | 1178 | "execution_count": null, |
1145 | 1179 | "metadata": {}, |
1146 | | - "outputs": [], |
| 1180 | + "outputs": [ |
| 1181 | + { |
| 1182 | + "name": "stdout", |
| 1183 | + "output_type": "stream", |
| 1184 | + "text": [ |
| 1185 | + "popenargs (['cmd', '/c', 'echo', 'hi'],)\n", |
| 1186 | + "kwargs {'stdout': -1, 'stderr': -1}\n" |
| 1187 | + ] |
| 1188 | + } |
| 1189 | + ], |
1147 | 1190 | "source": [ |
1148 | 1191 | "if sys.platform == 'win32':\n", |
1149 | 1192 | " # why I ignore as_types, because every time nbdev_clean_nbs will update \\n to \\r\\n\n", |
|
1607 | 1650 | "name": "stdout", |
1608 | 1651 | "output_type": "stream", |
1609 | 1652 | "text": [ |
1610 | | - "Num Events: 1, Freq/sec: 62.4\n", |
1611 | | - "Most recent: ▇▂▁▅▅ 32.0 31.5 31.2 31.7 31.7\n" |
| 1653 | + "Num Events: 1, Freq/sec: 62.9\n", |
| 1654 | + "Most recent: ▃▇▃▁▃ 31.3 31.9 31.4 30.8 31.3\n" |
1612 | 1655 | ] |
1613 | 1656 | } |
1614 | 1657 | ], |
|
0 commit comments