CodeCells
A SublimeText 2/3 Plugin for easily copying chunks of code to paste into a REPL
Details
Installs
- Total 4K
- Win 3K
- Mac 655
- Linux 165
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
CodeCells is a simple package for Sublime Text 2/3 that facilitates copying and pasting chunks of python code from a script into a REPL like IPython. This allows you the easy of working with cells of code that you might get from an IPython Notebook, but with the work flow of having separate panels for your code and it's output.
The use of cells is taken from the Spyder IDE #%%
, which in turn took it from Matlab %%
. It could be extended to other languages by changing the cell marker, but I thought it might be useful to others in it's current form.
Code cells can be copied to the clipboard (for pasting into your favorite REPL) and traversed up and down quickly. There is also a command for quickly creating cell markers which is helpful for code as well.
Usage
I find it easy to add the following quick bindings lines to my user keymap.
{ "keys": ["shift+enter"], "command": "execute_cell" }, # Copy cell and move to bottom of cell
{ "keys": ["alt+down"], "command": "move_down_cell" }, # Incrementally adds cells to clipboard
{ "keys": ["alt+up"], "command": "move_up_cell" }, # Clear Clipboard
{ "keys": ["super+shift+/"], "command": "insert_cell_divider" } # Also works with text selected