From 17ac9ea417bd1c308af4f01691159a83efa376a4 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Sat, 29 Oct 2022 12:28:12 +0200 Subject: [PATCH] please formatter --- IPython/core/display.py | 1 + IPython/core/interactiveshell.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/IPython/core/display.py b/IPython/core/display.py index a095f3cb5e0..25b340fc8eb 100644 --- a/IPython/core/display.py +++ b/IPython/core/display.py @@ -625,6 +625,7 @@ def _data_and_metadata(self): def _repr_json_(self): return self._data_and_metadata() + _css_t = """var link = document.createElement("link"); link.ref = "stylesheet"; link.type = "text/css"; diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index c6950453bf7..54e5d547beb 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -1258,9 +1258,10 @@ def prepare_user_module(self, user_module=None, user_ns=None): @functools.wraps(io_open) def modified_open(file, *args, **kwargs): if file in {0, 1, 2}: - raise ValueError(f"IPython won't let you open fd={file} by default " - "as it is likely to crash IPython. If you know what you are doing, " - "you can use builtins' open." + raise ValueError( + f"IPython won't let you open fd={file} by default " + "as it is likely to crash IPython. If you know what you are doing, " + "you can use builtins' open." ) return io_open(file, *args, **kwargs)