Skip to content

Commit 9d7fe1f

Browse files
committed
Carreau reviewe
1 parent 98646b2 commit 9d7fe1f

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

matplotlib_inline/backend_inline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def set_matplotlib_formats(*formats, **kwargs):
300300
301301
In addition, see the docstrings of `plt.savefig()`,
302302
`matplotlib.figure.Figure.savefig()`, `PIL.Image.Image.save()` and
303-
https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html
303+
:ref:`Pillow Image file formats <handbook/image-file-formats>`.
304304
"""
305305
# build kwargs, starting with InlineBackend config
306306
cfg = InlineBackend.instance()

tests/notebooks/config_InlineBackend.ipynb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"outputs": [],
99
"source": [
1010
"#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",
1511
"%matplotlib inline"
1612
]
1713
},
@@ -75,14 +71,13 @@
7571
"\n",
7672
" In addition, see the docstrings of `plt.savefig()`,\n",
7773
" `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",
7975
"\n"
8076
]
8177
}
8278
],
8379
"source": [
8480
"#NBVAL_IGNORE_OUTPUT\n",
85-
"# TODO: --nbval-sanitize-with=ignore_space_change.cfg # re.sub(r'(\\s)\\s*', r'\\1')\n",
8681
"help(set_matplotlib_formats)"
8782
]
8883
},
@@ -143,7 +138,7 @@
143138
{
144139
"data": {
145140
"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",
147142
" 'InlineBackend': {'figure_formats': {'jpeg', 'png'},\n",
148143
" 'print_figure_kwargs': {'bbox_inches': None, 'pil_kwargs': {'quality': 90}}}}"
149144
]
@@ -155,8 +150,6 @@
155150
],
156151
"source": [
157152
"#NBVAL_IGNORE_OUTPUT\n",
158-
"# For demonstration purposes only, the Inline Back-end\n",
159-
"# configuration does not change.\n",
160153
"c = get_config()\n",
161154
"c.InlineBackend.figure_formats = {'png', 'jpeg'}\n",
162155
"c.InlineBackend.print_figure_kwargs.update({\n",

0 commit comments

Comments
 (0)