diff --git a/extensions/positron-python/python_files/positron/positron_ipykernel/plots.py b/extensions/positron-python/python_files/positron/positron_ipykernel/plots.py index faccdc328a0..3418e16f8a8 100644 --- a/extensions/positron-python/python_files/positron/positron_ipykernel/plots.py +++ b/extensions/positron-python/python_files/positron/positron_ipykernel/plots.py @@ -32,6 +32,7 @@ "jpeg": "image/jpeg", } + class PositronDisplayPublisherHook: def __init__(self, target_name: str): self.comms: Dict[str, PositronComm] = {} @@ -104,7 +105,9 @@ def handle_msg(self, msg: CommMessage[PlotBackendMessageContent], raw_msg: JsonR format = request.params.format or "png" if width_px != 0 and height_px != 0: - format_dict = self._resize_pickled_figure(pickled, width_px, height_px, pixel_ratio, [format]) + format_dict = self._resize_pickled_figure( + pickled, width_px, height_px, pixel_ratio, [format] + ) mime_type = MIME_TYPE[format] data = format_dict[mime_type] output = PlotResult(data=data, mime_type=mime_type).dict()