Skip to content

Commit ff8bc63

Browse files
authored
Fix tests: New version fo traitlets (#64)
The new version of traitlets fixes the rendering of the config help that was over-indented
2 parents 30bf01b + 445cce6 commit ff8bc63

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ test = [
5353
"nbval",
5454
"notebook",
5555
"pytest",
56+
"matplotlib"
5657
]
5758

5859
[project.urls]

tests/notebooks/config_InlineBackend.ipynb

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,38 +43,37 @@
4343
"----------------------------------------\n",
4444
"InlineBackend.close_figures=<Bool>\n",
4545
" Close all figures at the end of each cell.\n",
46-
" When True, ensures that each cell starts with no active figures, but it\n",
47-
" also means that one must keep track of references in order to edit or\n",
48-
" redraw figures in subsequent cells. This mode is ideal for the notebook,\n",
49-
" where residual plots from other cells might be surprising.\n",
50-
" When False, one must call figure() to create new figures. This means\n",
51-
" that gcf() and getfigs() can reference figures created in other cells,\n",
52-
" and the active figure can continue to be edited with pylab/pyplot\n",
53-
" methods that reference the current active figure. This mode facilitates\n",
54-
" iterative editing of figures, and behaves most consistently with\n",
55-
" other matplotlib backends, but figure barriers between cells must\n",
56-
" be explicit.\n",
46+
"\n",
47+
" When True, ensures that each cell starts with no active figures, but it also\n",
48+
" means that one must keep track of references in order to edit or redraw\n",
49+
" figures in subsequent cells. This mode is ideal for the notebook, where\n",
50+
" residual plots from other cells might be surprising.\n",
51+
"\n",
52+
" When False, one must call figure() to create new figures. This means that\n",
53+
" gcf() and getfigs() can reference figures created in other cells, and the\n",
54+
" active figure can continue to be edited with pylab/pyplot methods that\n",
55+
" reference the current active figure. This mode facilitates iterative editing\n",
56+
" of figures, and behaves most consistently with other matplotlib backends,\n",
57+
" but figure barriers between cells must be explicit.\n",
5758
" Current: True\n",
5859
"InlineBackend.figure_format=<Unicode>\n",
59-
" The figure format to enable (deprecated\n",
60-
" use `figure_formats` instead)\n",
60+
" The figure format to enable (deprecated use `figure_formats` instead)\n",
6161
" Current: ''\n",
6262
"InlineBackend.figure_formats=<set-item-1>...\n",
63-
" A set of figure formats to enable: 'png',\n",
64-
" 'retina', 'jpeg', 'svg', 'pdf'.\n",
63+
" A set of figure formats to enable: 'png', 'retina', 'jpeg', 'svg', 'pdf'.\n",
6564
" Current: {'jpeg'}\n",
6665
"InlineBackend.print_figure_kwargs=<key-1>=<value-1>...\n",
6766
" Extra kwargs to be passed to fig.canvas.print_figure.\n",
68-
" Logical examples include: bbox_inches, pil_kwargs, etc. In addition,\n",
69-
" see the docstrings of `set_matplotlib_formats`.\n",
67+
"\n",
68+
" Logical examples include: bbox_inches, pil_kwargs, etc. In addition, see the\n",
69+
" docstrings of `set_matplotlib_formats`.\n",
7070
" Current: {'bbox_inches': None, 'pil_kwargs': {'quality': 90, 'optimize': True}}\n",
7171
"InlineBackend.rc=<key-1>=<value-1>...\n",
72-
" Dict to manage matplotlib configuration defaults in the inline\n",
73-
" backend. As of v0.1.4 IPython/Jupyter do not override defaults out of\n",
74-
" the box, but third-party tools may use it to manage rc data. To change\n",
75-
" personal defaults for matplotlib, use matplotlib's configuration\n",
76-
" tools, or customize this class in your `ipython_config.py` file for\n",
77-
" IPython/Jupyter-specific usage.\n",
72+
" Dict to manage matplotlib configuration defaults in the inline backend. As\n",
73+
" of v0.1.4 IPython/Jupyter do not override defaults out of the box, but\n",
74+
" third-party tools may use it to manage rc data. To change personal defaults\n",
75+
" for matplotlib, use matplotlib's configuration tools, or customize this\n",
76+
" class in your `ipython_config.py` file for IPython/Jupyter-specific usage.\n",
7877
" Current: {}\n"
7978
]
8079
}

0 commit comments

Comments
 (0)