JLObjPy

jobject.spad line 530 [edit on github]

Convenience domain for Julia Python objects that are used within Julia, and not directly by the underlying FriCAS Common Lisp. The PythonCall package must be installed in Julia. Note that the PythonCall Julia package uses a similar scheme for Julia Python objects to the one of jlFriCAS for JLObjectType references.

#: % -> NonNegativeInteger

from Aggregate

=: (%, %) -> Boolean

from BasicType

~=: (%, %) -> Boolean

from BasicType

coerce: % -> JLObject

from JLObjectType

coerce: % -> OutputForm

from CoercibleTo OutputForm

coerce: Float -> %

coerce(f) coerces f to a Julia Python object.

coerce: Integer -> %

coerce(i) coerces the integer i to a Julia Python object.

coerce: String -> %

coerce(str) coerces the string str to a Julia Python string object.

convert: % -> String

from ConvertibleTo String

copy: % -> %

from Aggregate

elt: (%, Integer) -> %

elt(obj, ind) returns the element at index ind of obj.

elt: (%, Integer) -> JLObject

from JLObjectAggregate

elt: (%, JLSymbol) -> %

elt(obj, sym) returns the property/element sym of obj.

elt: (%, JLSymbol) -> JLObject

from JLObjectAggregate

empty?: % -> Boolean

from Aggregate

empty: () -> %

from Aggregate

eq?: (%, %) -> Boolean

from Aggregate

jlAbout: % -> Void

from JLObjectType

jlApply: (String, %) -> JLObject

from JLObjectType

jlApply: (String, %, %) -> JLObject

from JLObjectType

jlApply: (String, %, %, %) -> JLObject

from JLObjectType

jlApply: (String, %, %, %, %) -> JLObject

from JLObjectType

jlApply: (String, %, %, %, %, %) -> JLObject

from JLObjectType

jlDisplay: % -> Void

from JLObjectType

jlDump: JLObject -> Void

from JLObjectType

jlFieldNames: % -> JLObject

from JLObjectType

jlGetField: (%, JLSymbol) -> JLObject

from JLObjectType

jlGetJuliaIndex: % -> String

from JLObjectType

jlGetProperty: (%, JLSymbol) -> JLObject

from JLObjectType

jlId: % -> Integer

from JLObjectType

jlimref: String -> %

from JLObjectType

jlNames: % -> JLObject

from JLObjectType

jlObject: () -> String

from JLObjectType

jlPropertyNames: % -> JLObject

from JLObjectType

jlPyApply: (String, %) -> %

jlPyApply(func, pyobj) applies the Python function func form the module __main__ to the Python object pyobj.

jlPyApply: (String, %, %) -> %

jlPyApply(func, pyobj1, pyobj2) applies the Python function func form the module __main__ to the Python objects pyobj1 and pyobj2.

jlPyApply: (String, %, %, %) -> %

jlPyApply(func, pyobj1, pyobj2, pyobj3) applies the Python function func form the module __main__ to the Python objects pyobj1, pyobj2 and pyobj3.

jlPyApply: (String, %, %, %, %) -> %

jlPyApply(func, pyobj1, pyobj2, pyobj3, pyobj4) applies the Python function func form the module __main__ to the Python objects pyobj1, pyobj2, pyobj3 and pyobj4.

jlPyApply: (String, %, %, %, %, %) -> %

jlPyApply(func, pyobj1, pyobj2, pyobj3, pyobj4, pyobj5) applies the Python function func form the module __main__ to the Python objects pyobj1, pyobj2, pyobj3, pyobj4 and pyobj5.

jlPyApply: (String, String, %) -> %

jlPyApply(mod, func, pyobj) applies the Python function func from the module mod to the Python object pyobj. For example: Numpy needs to be installed, see the Julia package CondaPkg.

jlPyApply("numpy", "array", jpyobj("[1,2,3]"))

creates a numpy array from the Python list [1,2,3]. jlPyApply(“math”, “sqrt”, 2) computes the square root of 2.

jlPyApply: (String, String, %, %) -> %

jlPyApply(mod, func, pyobj1, pyobj2) applies the Python function func from the module mod to the Python objects pyobj1 and pyobj2

jlPyApply: (String, String, %, %, %) -> %

jlPyApply(mod, func, pyobj1, pyobj2, pyobj3) applies the Python function func from the module mod to the Python objects pyobj1, pyobj2 and pyobj3.

jlPyApply: (String, String, %, %, %, %) -> %

jlPyApply(mod, func, pyobj1, pyobj2, pyobj3, pyobj4) applies the Python function func from the module mod to the Python objects pyobj1, pyobj2, pyobj3 and pyobj4.

jlPyApply: (String, String, %, %, %, %, %) -> %

jlPyApply(mod, func, pyobj1, pyobj2, pyobj3, pyobj4, pyobj5) applies the Python function func from the module mod to the Python objects pyobj1, pyobj2, pyobj3, pyobj4 and pyobj5.

jlPyApply: (String, String, String, %) -> %

jlPyApply(mod1, mod2, func, pyobj) applies the Python function func from the module mod1.mod2 to the Python object pyobj.

jlPyApply: (String, String, String, %, %) -> %

jlPyApply(mod1, mod2, func, pyobj1, pyobj2) applies the Python function func from the module mod1.mod2 to the Python objects pyobj1 and pyobj2.

jlPyApply: (String, String, String, %, %, %) -> %

jlPyApply(mod1, mod2, func, pyobj1, pyobj2, pyobj3) applies the Python function func from the module mod1.mod2 to the Python objects pyobj1, pyobj2 and pyobj3.

jlPyApply: (String, String, String, %, %, %, %) -> %

jlPyApply(mod1, mod2, func, pyobj1, pyobj2, pyobj3, pyobj4) applies the Python function func from the module mod1.mod2 to the Python objects pyobj1, pyobj2, pyobj3 and pyobj4.

jlPyApply: (String, String, String, %, %, %, %, %) -> %

jlPyApply(mod1, mod2, func, pyobj1, pyobj2, pyobj3, pyobj4, pyobj5) applies the Python function func from the module mod1.mod2 to the Python objects pyobj1, pyobj2, pyobj3, pyobj4 and pyobj5.

jlPyConvert: (String, %) -> JLObject

jlPyConvert(type, pyobj) converts the Python object pyobj to the Julia type ‘type’.

jlPyDocumentation: String -> Void

jlPyDocumentation(obj) displays the Python documentation for the Python object obj. Use 'q' followed by ENTER to quit.

jlPyImport: String -> %

jlPyImport(mod) imports the Python module mod in the Julia Python environment.

jlPyRepr: % -> %

jlPyRepr(pyobj) returns the Julia Python object representing the Python object pyobj.

jlPyType: % -> %

jlPyType(pyobj) returns the Python type of the Python object pyobj.

jlRef: % -> SExpression

from JLObjectType

jlref: String -> %

from JLObjectType

jlText: (%, String) -> List String

from JLObjectType

jlType: % -> Symbol

from JLObjectType

jpython: JLObject -> %

jpython(obj) coerces the Julia object obj to a Julia Python object. Use jlDisplay(pyobj) to display the Python object pyobj.

jpython: String -> %

jpython(str) coerces the string str to a Julia Python object. Use jlDisplay(pyobj) to display the Python object pyobj.

latex: % -> String

from SetCategory

less?: (%, NonNegativeInteger) -> Boolean

from Aggregate

missing?: % -> Boolean

from JLObjectType

more?: (%, NonNegativeInteger) -> Boolean

from Aggregate

mutable?: % -> Boolean

from JLObjectType

nothing?: % -> Boolean

from JLObjectType

qelt: (%, Integer) -> %

qelt(obj, ind) returns the element at index ind of obj.

qelt: (%, Integer) -> JLObject

from JLObjectAggregate

qelt: (%, JLSymbol) -> %

qelt(obj, sym) returns the property/element sym of obj. No checks are done regarding the existence of the sym property. If it does not exist, Julia throws an error.

qelt: (%, JLSymbol) -> JLObject

from JLObjectAggregate

sample: %

from Aggregate

size?: (%, NonNegativeInteger) -> Boolean

from Aggregate

string: % -> String

from JLType

Aggregate

BasicType

CoercibleTo OutputForm

ConvertibleTo String

finiteAggregate

JLObjectAggregate

JLObjectType

JLType

SetCategory