diff --git a/prettyprinter/extras/ipython.py b/prettyprinter/extras/ipython.py index 9ca7b58..86cc133 100644 --- a/prettyprinter/extras/ipython.py +++ b/prettyprinter/extras/ipython.py @@ -53,7 +53,7 @@ def pretty(self, obj): obj, stream=self.stream, style=pygments_style_from_name_or_cls( - ipy.highlighting_style, + getattr(ipy, "highlighting_style", "legacy"), ishell=ipy ), width=columns,