-
Notifications
You must be signed in to change notification settings - Fork 43
Description
I think pyp is a very cool tool. I don't actually use it, but I'm impressed by what you've created, and there is a way I would use this code more.
It would be useful if someone created a VisiData plugin that used pyp as the way to evaluate values. Visidata has commands that allow the user to enter Python expressions, which are evaluated to add/modify/select rows of values. If you want to use one of the modules that isn't already imported, you need to manually add the import either via a command or your visidatarc file. For example there is the addcol-expr command:
I think it would be useful if pyp could be used to evaluate these expressions, adding the magic that pyp provides.
I had made a Visidata request, but there is no interest yet from the developers, but I think the users would find it useful:
I don't really think that a Visidata plugin would necessarily make sense for you to create. But I think it would be much easier if pyp could be used as a module in other tools, and used with in a REPL or eval loop like Visisdata does.