When editing a pure Python script without any explicit cell boundaries, I think it would be nice to implicitly treat top-level Python "paragraphs" as notebook cells. Any top level code block would be considered as a cell (e.g. class or function definitions). Similarly any sequence of Python statements at indentation level 0 would be considered a cell. (Double?) blank lines in non-indented blocks would be considered cell separators by default.
That would make it faster to execute natural code blocks (e.g. a class or function definition, a multi-line tuple, list or dict definition) without having to manually select them first.
When editing a pure Python script without any explicit cell boundaries, I think it would be nice to implicitly treat top-level Python "paragraphs" as notebook cells. Any top level code block would be considered as a cell (e.g. class or function definitions). Similarly any sequence of Python statements at indentation level 0 would be considered a cell. (Double?) blank lines in non-indented blocks would be considered cell separators by default.
That would make it faster to execute natural code blocks (e.g. a class or function definition, a multi-line tuple, list or dict definition) without having to manually select them first.