Safe oneliners! #1875
redraw
started this conversation in
Show and tell
Safe oneliners!
#1875
Replies: 1 comment 1 reply
-
Thanks for sharing @redraw. You might be able to remove the need for the freeze column if you are willing to add some code to you .visidatarc or create a simple plugin. The shell column only runs the command for a row once. You can look at what Visidata does for the ColumnShell column. It does caching. You can see it here: https://github.com/saulpw/visidata/blob/develop/visidata/shell.py#L59 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had a
domain
andzone
columns, for which I wanted to create a new one from a expression that lookup their IPs.I found out this lib: result, so that I could wrap the expression and unwrap it with some default value if it fails. I would import
socket, result
fromSystem > Python > import library
and then create the column,Then, I would freeze the column (
'
) and delete the expression column, so that it gets cached and the whole sheet doesn't get super slow to navigate.Beta Was this translation helpful? Give feedback.
All reactions