##// END OF EJS Templates
Misc CI warning and error.
Matthias Bussonnier -
Show More
@@ -183,7 +183,7 b' def test_set_matplotlib_formats_kwargs():'
183 183 ip = get_ipython()
184 184 cfg = _get_inline_config()
185 185 cfg.print_figure_kwargs.update(dict(foo='bar'))
186 kwargs = dict(quality=10)
186 kwargs = dict(dpi=150)
187 187 display.set_matplotlib_formats('png', **kwargs)
188 188 formatter = ip.display_formatter.formatters['image/png']
189 189 f = formatter.lookup_by_type(Figure)
@@ -8,6 +8,8 b' from os import walk, sep, fsdecode'
8 8
9 9 from IPython.core.display import DisplayObject, TextDisplayObject
10 10
11 from typing import Tuple
12
11 13 __all__ = ['Audio', 'IFrame', 'YouTubeVideo', 'VimeoVideo', 'ScribdDocument',
12 14 'FileLink', 'FileLinks', 'Code']
13 15
@@ -159,7 +161,7 b' class Audio(DisplayObject):'
159 161 return val
160 162
161 163 @staticmethod
162 def _validate_and_normalize_with_numpy(data, normalize):
164 def _validate_and_normalize_with_numpy(data, normalize) -> Tuple[bytes, int]:
163 165 import numpy as np
164 166
165 167 data = np.array(data, dtype=float)
@@ -178,8 +180,7 b' class Audio(DisplayObject):'
178 180 max_abs_value = np.max(np.abs(data))
179 181 normalization_factor = Audio._get_normalization_factor(max_abs_value, normalize)
180 182 scaled = data / normalization_factor * 32767
181 return scaled.astype('<h').tostring(), nchan
182
183 return scaled.astype("<h").tobytes(), nchan
183 184
184 185 @staticmethod
185 186 def _validate_and_normalize_without_numpy(data, normalize):
@@ -3,7 +3,9 b''
3 3 ============
4 4
5 5 .. _version 7.22:
6 =================
6
7 IPython 7.22
8 ============
7 9
8 10
9 11 Thanks
@@ -16,7 +18,7 b" codebase; they now have triage permissions to the IPython repository and we'll"
16 18 work toward giving them more permission in the future.
17 19
18 20 Many thanks to all the contributors to this release you can find all individual
19 contributions to this milestone `on github <https://github.com/ipython/ipython/milestone/XX>`_.
21 contributions to this milestone `on github <https://github.com/ipython/ipython/milestone/XX>`__.
20 22
21 23 Thanks as well to organisations, QuantStack for working on debugger
22 24 compatibility for Xeus_python, and the `D. E. Shaw group
@@ -53,7 +55,7 b' Thanks'
53 55 ------
54 56
55 57 Many thanks to all the contributors to this release you can find all individual
56 contribution to this milestone `on github <https://github.com/ipython/ipython/milestone/83>`_.
58 contribution to this milestone `on github <https://github.com/ipython/ipython/milestone/83>`__.
57 59
58 60
59 61 .. _version 720:
General Comments 0
You need to be logged in to leave comments. Login now