vim-py-kid : Block-wise python script execution in vim (bit like Jupyter)
script karma |
Rating 4/1,
Downloaded by 216 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Phil Grunewald |
|
script type |
ftplugin |
|
description |
Break up a python script into blocks. Blocks are separated with lines starting with:
#>
Since the `#` renders the line as a comment, the script remains compatible to be run in any other environment.
<S-ENTER> opens the terminal in a split view to present the output of the current block.
All variables are stored ('shelved') and picked up when executing subsequent blocks.
The state of all stored variables can be inspected with this line:
#<
Any line starting with > (even if indented) gets converted into a print
statement. E.g.
>"bob"
becomes
print("bob")
after execution. This is just for laziness. It avoids having to type `print` and putting brackets around the statement (speaking like a disgruntled python2 user). |
|
install details |
Plug from https://github.com/PhilGrunewald/vim-py-kid
OR
copy downloaded folder into your plugin folder
Python dependencies: sys, shelve, types, pandas, datetime |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.129.128.179
|