import jep.Jep as Jep

#if "j" in globals().keys():
#    j.close()

if not "j" in globals().keys():
    j = Jep(False)
j.eval("from java.lang import System")
j.eval("s = 'Hello World'")
j.eval("System.out.println(s)")
j.eval("print(s)")
j.eval("print(s[1:-1])")




j.eval("import numpy");
j.eval("numpy.ones((1,2))")
ret = j.getValue("_")



#j.close()
#res= lscan(inp, sin, 0, 40, 10, 0.1)



