Raoul,
I hope you are well.
Inside python3 all of the following works as expected, but I can't get the
visidata command to work.
Look below the working stuff to see the error I get.
Perhaps, I am not able to use sys.path.append to put visidata into my path
(see third line)?
Might you suggest where I am going wrong, please?
import sys
sys.path.append('/Users/brian/j64-807/addons/api/python3')
sys.path.append('/Library/Frameworks/Python.framework/Versions/3.7/bin/visidata')
import jbase as jb
import numpy as np
from visidata import vd
jb.init(True) #tried False also
def j_mean(vals):
jb.set('temp', np.array(vals))
e = jb.do('var=:(+/%#)temp')
r = jb.get('var')
return (r,e)
print(j_mean(list([1,2,3,4])))
*****error below*****
>>> printf %"d\n" 1 2 3 4 5 | vd
File "<stdin>", line 1
printf %"d\n" 1 2 3 4 5 | vd
^
SyntaxError: invalid syntax
*****error above*****
On Sat, Jul 3, 2021 at 12:32 PM Raoul Schorer <[email protected]>
wrote:
> Sorry, I've been feeling under the weather since yesterday. Anyways:
> With vd in your path
>
> printf %"d\n" 1 2 3 4 5 | vd
>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm