|
5 | 5 | "execution_count": 1, |
6 | 6 | "id": "c235d5cb-9181-4579-855c-b7da77261bd7", |
7 | 7 | "metadata": {}, |
8 | | - "outputs": [ |
9 | | - { |
10 | | - "name": "stderr", |
11 | | - "output_type": "stream", |
12 | | - "text": [ |
13 | | - "TODO1: Probably need --nbval-current-env\n", |
14 | | - "TODO2: Probably need --nbval-current-env\n" |
15 | | - ] |
16 | | - } |
17 | | - ], |
| 8 | + "outputs": [], |
18 | 9 | "source": [ |
19 | | - "import sys\n", |
20 | | - "print(\"TODO1: Probably need --nbval-current-env\", file=sys.stderr)\n", |
21 | | - "# Matplotlib is building the font cache; this may take a moment.\n", |
22 | | - "%matplotlib inline\n", |
23 | | - "print(\"TODO2: Probably need --nbval-current-env\", file=sys.stderr)" |
| 10 | + "%matplotlib inline" |
24 | 11 | ] |
25 | 12 | }, |
26 | 13 | { |
27 | 14 | "cell_type": "code", |
28 | 15 | "execution_count": 2, |
29 | | - "id": "a4955642-7322-4a58-b483-167302ae582e", |
30 | | - "metadata": {}, |
31 | | - "outputs": [ |
32 | | - { |
33 | | - "data": { |
34 | | - "text/plain": [ |
35 | | - "['matplotlib.pyplot']" |
36 | | - ] |
37 | | - }, |
38 | | - "execution_count": 2, |
39 | | - "metadata": {}, |
40 | | - "output_type": "execute_result" |
41 | | - } |
42 | | - ], |
43 | | - "source": [ |
44 | | - "[m for m in sys.modules if \"matplotlib.pypl\" in m]" |
45 | | - ] |
46 | | - }, |
47 | | - { |
48 | | - "cell_type": "code", |
49 | | - "execution_count": 3, |
50 | 16 | "id": "e4221445-5518-4984-b731-aaf9840141d8", |
51 | 17 | "metadata": {}, |
52 | | - "outputs": [ |
53 | | - { |
54 | | - "name": "stderr", |
55 | | - "output_type": "stream", |
56 | | - "text": [ |
57 | | - "TODO3: Probably need --nbval-current-env\n", |
58 | | - "TODO4: Probably need --nbval-current-env\n", |
59 | | - "TODO5: Probably need --nbval-current-env\n" |
60 | | - ] |
61 | | - } |
62 | | - ], |
| 18 | + "outputs": [], |
63 | 19 | "source": [ |
64 | 20 | "%config InlineBackend.figure_formats = 'jpeg'\n", |
65 | 21 | "%config InlineBackend.print_figure_kwargs = \\\n", |
66 | 22 | " {'bbox_inches': None, \\\n", |
67 | 23 | " 'pil_kwargs': {'quality' : 90, \\\n", |
68 | 24 | " 'optimize': True}}\n", |
69 | | - "print(\"TODO3: Probably need --nbval-current-env\", file=sys.stderr)\n", |
| 25 | + "\n", |
70 | 26 | "import matplotlib.pyplot as plt\n", |
71 | | - "print(\"TODO4: Probably need --nbval-current-env\", file=sys.stderr)\n", |
72 | 27 | "from matplotlib_inline.backend_inline import set_matplotlib_formats\n", |
73 | | - "print(\"TODO5: Probably need --nbval-current-env\", file=sys.stderr)\n", |
74 | 28 | "from traitlets.config import get_config" |
75 | 29 | ] |
76 | 30 | }, |
77 | 31 | { |
78 | 32 | "cell_type": "code", |
79 | | - "execution_count": 4, |
| 33 | + "execution_count": 3, |
80 | 34 | "id": "0e5b8951-19af-4273-80ca-23b47476d637", |
81 | 35 | "metadata": {}, |
82 | 36 | "outputs": [ |
|
129 | 83 | }, |
130 | 84 | { |
131 | 85 | "cell_type": "code", |
132 | | - "execution_count": 5, |
| 86 | + "execution_count": 4, |
133 | 87 | "id": "89f6de76-9d6b-43c0-b790-e6b63c4c4159", |
134 | 88 | "metadata": {}, |
135 | 89 | "outputs": [ |
|
153 | 107 | }, |
154 | 108 | { |
155 | 109 | "cell_type": "code", |
156 | | - "execution_count": 6, |
| 110 | + "execution_count": 5, |
157 | 111 | "id": "1fc45e92-07c2-49fa-9b3e-2c30e865e5e8", |
158 | 112 | "metadata": {}, |
159 | 113 | "outputs": [ |
|
164 | 118 | "<Figure size 640x480 with 1 Axes>" |
165 | 119 | ] |
166 | 120 | }, |
167 | | - "execution_count": 6, |
| 121 | + "execution_count": 5, |
168 | 122 | "metadata": {}, |
169 | 123 | "output_type": "execute_result" |
170 | 124 | } |
|
177 | 131 | }, |
178 | 132 | { |
179 | 133 | "cell_type": "code", |
180 | | - "execution_count": 7, |
| 134 | + "execution_count": 6, |
181 | 135 | "id": "df3590be-d87d-4c37-8f73-c652eec9a640", |
182 | 136 | "metadata": {}, |
183 | 137 | "outputs": [ |
|
189 | 143 | " 'print_figure_kwargs': {'bbox_inches': None, 'pil_kwargs': {'quality': 90}}}}" |
190 | 144 | ] |
191 | 145 | }, |
192 | | - "execution_count": 7, |
| 146 | + "execution_count": 6, |
193 | 147 | "metadata": {}, |
194 | 148 | "output_type": "execute_result" |
195 | 149 | } |
|
0 commit comments