diff --git a/IPython/core/magics/namespace.py b/IPython/core/magics/namespace.py index 2d48edc..8c16a3e 100644 --- a/IPython/core/magics/namespace.py +++ b/IPython/core/magics/namespace.py @@ -119,7 +119,7 @@ class NamespaceMagics(Magics): except IOError as msg: print msg return - page.page(self.shell.pycolorize(read_py_file(filename))) + page.page(self.shell.pycolorize(read_py_file(filename, skip_encoding_cookie=False))) @line_magic def psearch(self, parameter_s=''):