python-cell.el
python-cell.el copied to clipboard
Matlab-like cells in python buffers
This pull request adds code that recognizes blocks starting with `if False:` as code cells. This is an attempt at having something similar to [rich comments](https://betweentwoparens.com/blog/rich-comment-blocks/#rich-comment) commonly used in Clojure....
* Execute all cells till the current cell * Split and Merge cells * Move cells up/down * ...
See https://jupytext.readthedocs.io/en/latest/index.html and https://jupytext.readthedocs.io/en/latest/formats.html
When sending an indented cell (e.g. a block in a method of a class), Python shell would throw `IndentationError: unexpected indent` I figured out a hack to fix this problem(...
I've added two functions for moving a cell either up or down a cell. I've also made the begging and end functions return (point) after moving the point. Previously these...