Sometimes it's nice to have a visual of a curve parameter without needing to pull up the parameter window for a node. This code samples a ramp at 10 locations then gets a Unicode character to create a rough approximation of the curve viewable within the network view.
def lookup_ramp_pos():
node = hou.pwd()
ramp = node.parm("out_ramp").eval()
samples = 10
chars = ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
out_chars=[]
for item in range(samples):
val = ramp.lookup(item/samples)
char_ind = round(val)*len(chars)
char = chars[round(val*len(chars))]
out_chars.append(char)
return ''.join(out_chars)