diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index f86ebd7..7753dc0 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2788,7 +2788,7 @@ class InteractiveShell(SingletonConfigurable): def get_cells(): """generator for sequence of code blocks to run""" - if fname.suffix == '.ipynb': + if fname.suffix == ".ipynb": from nbformat import read nb = read(fname, as_version=4) if not nb.cells: