diff --git a/line_profiler/line_profiler.py b/line_profiler/line_profiler.py index 4dd0bb08..d4b81edd 100755 --- a/line_profiler/line_profiler.py +++ b/line_profiler/line_profiler.py @@ -220,6 +220,7 @@ def add_module(self, mod): def is_ipython_kernel_cell(filename): """ Return True if a filename corresponds to a Jupyter Notebook cell """ + filename = os.path.normpath(filename) return ( filename.startswith('