|
8 | 8 | "outputs": [], |
9 | 9 | "source": [ |
10 | 10 | "#NBVAL_IGNORE_OUTPUT\n", |
11 | | - "# TODO: On windows-current, the message \"Matplotlib is building \n", |
12 | | - "# the font cache; this may take a moment.\" may be displayed in `stderr`.\n", |
13 | | - "# Probably need `--nbval-current-env`.\n", |
14 | | - "\n", |
15 | 11 | "%matplotlib inline" |
16 | 12 | ] |
17 | 13 | }, |
|
75 | 71 | "\n", |
76 | 72 | " In addition, see the docstrings of `plt.savefig()`,\n", |
77 | 73 | " `matplotlib.figure.Figure.savefig()`, `PIL.Image.Image.save()` and\n", |
78 | | - " https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html\n", |
| 74 | + " :ref:`Pillow Image file formats <handbook/image-file-formats>`.\n", |
79 | 75 | "\n" |
80 | 76 | ] |
81 | 77 | } |
82 | 78 | ], |
83 | 79 | "source": [ |
84 | 80 | "#NBVAL_IGNORE_OUTPUT\n", |
85 | | - "# TODO: --nbval-sanitize-with=ignore_space_change.cfg # re.sub(r'(\\s)\\s*', r'\\1')\n", |
86 | 81 | "help(set_matplotlib_formats)" |
87 | 82 | ] |
88 | 83 | }, |
|
143 | 138 | { |
144 | 139 | "data": { |
145 | 140 | "text/plain": [ |
146 | | - "{'IPKernelApp': {'connection_file': '/Users/leo/Library/Jupyter/runtime/kernel-fd702e07-f2dc-45ba-b31a-62608c076402.json'},\n", |
| 141 | + "{'IPKernelApp': {'connection_file': '/Users/leo/Library/Jupyter/runtime/kernel-488a2b06-f50e-4bf3-98b5-f46e505f928c.json'},\n", |
147 | 142 | " 'InlineBackend': {'figure_formats': {'jpeg', 'png'},\n", |
148 | 143 | " 'print_figure_kwargs': {'bbox_inches': None, 'pil_kwargs': {'quality': 90}}}}" |
149 | 144 | ] |
|
155 | 150 | ], |
156 | 151 | "source": [ |
157 | 152 | "#NBVAL_IGNORE_OUTPUT\n", |
158 | | - "# For demonstration purposes only, the Inline Back-end\n", |
159 | | - "# configuration does not change.\n", |
160 | 153 | "c = get_config()\n", |
161 | 154 | "c.InlineBackend.figure_formats = {'png', 'jpeg'}\n", |
162 | 155 | "c.InlineBackend.print_figure_kwargs.update({\n", |
|
0 commit comments