DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter
MIT License
334 stars 34 forks source link

Feature request: implicit cell boundaries on non-indented double blank lines #109

Open ogrisel opened 6 years ago

ogrisel commented 6 years ago

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.