sponsor Vim development Vim logo Vim Book Ad

vim-py-kid : Block-wise python script execution in vim (bit like Jupyter)

 script karma  Rating 4/1, Downloaded by 91  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
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-py.zip 1.0 2023-04-22 7.0 Phil Grunewald Initial upload
ip used for rating: 3.144.127.232

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github