Skip to content

Commit 17630ce

Browse files
committed
win test2
1 parent a5f0f59 commit 17630ce

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

tests/notebooks/config_InlineBackend.ipynb

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
" 'optimize': True}}\n",
1616
"\n",
1717
"import matplotlib.pyplot as plt\n",
18-
"from matplotlib_inline.backend_inline import set_matplotlib_formats\n",
19-
"#from traitlets.config import get_config"
18+
"from matplotlib_inline.backend_inline import set_matplotlib_formats"
2019
]
2120
},
2221
{
@@ -127,29 +126,31 @@
127126
"metadata": {},
128127
"outputs": [
129128
{
130-
"data": {
131-
"text/plain": [
132-
"{'IPKernelApp': {'connection_file': '/Users/leo/Library/Jupyter/runtime/kernel-15ea40aa-4b88-4253-8c45-b282c31584c8.json'},\n",
133-
" 'InlineBackend': {'figure_formats': {'jpeg', 'png'},\n",
134-
" 'print_figure_kwargs': {'bbox_inches': None, 'pil_kwargs': {'quality': 99}}}}"
135-
]
136-
},
137-
"execution_count": 5,
138-
"metadata": {},
139-
"output_type": "execute_result"
129+
"name": "stdout",
130+
"output_type": "stream",
131+
"text": [
132+
"{'IPKernelApp': {'connection_file': 'C:\\\\Users\\\\leo\\\\AppData\\\\Roaming\\\\jupyter\\\\runtime\\\\kernel-f8c8036d-dc80-4842-ab30-cb8a4413327d.json'},\n",
133+
" 'InlineBackend': {'figure_formats': {'png', 'jpeg'},\n",
134+
" 'print_figure_kwargs': {'bbox_inches': None,\n",
135+
" 'pil_kwargs': {'quality': 90}}}}\n"
136+
]
140137
}
141138
],
142139
"source": [
143140
"#NBVAL_IGNORE_OUTPUT\n",
144141
"# For demonstration purposes only, the Inline Back-end\n",
145142
"# configuration does not change.\n",
146-
"\n",
147-
"#c = get_config()\n",
148-
"#c.InlineBackend.figure_formats = {'png', 'jpeg'}\n",
149-
"#c.InlineBackend.print_figure_kwargs.update({\n",
150-
"# 'pil_kwargs': {'quality' : 99}\n",
151-
"# })\n",
152-
"#c"
143+
"try:\n",
144+
" import pprint\n",
145+
" from traitlets.config import get_config\n",
146+
" c = get_config()\n",
147+
" c.InlineBackend.figure_formats = {'png', 'jpeg'}\n",
148+
" c.InlineBackend.print_figure_kwargs.update({\n",
149+
" 'pil_kwargs': {'quality' : 90}\n",
150+
" })\n",
151+
" pprint.pprint(c)\n",
152+
"except ImportError as e:\n",
153+
" print(e)"
153154
]
154155
}
155156
],

0 commit comments

Comments
 (0)