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
- coerce: % -> JLObject
from JLObjectType
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: Float -> %
coerce(f)coercesfto a Julia Python object.
- coerce: Integer -> %
coerce(i)coerces the integerito a Julia Python object.
- coerce: String -> %
coerce(str)coerces the stringstrto a Julia Python string object.
- convert: % -> String
from ConvertibleTo String
- elt: (%, Integer) -> %
elt(obj, ind)returns the element at index ind ofobj.- elt: (%, Integer) -> JLObject
from JLObjectAggregate
- elt: (%, JLSymbol) -> %
elt(obj, sym)returns the property/elementsymofobj.- elt: (%, JLSymbol) -> JLObject
from JLObjectAggregate
- 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 functionfuncform the module __main__ to the Python object pyobj.
- jlPyApply: (String, %, %) -> %
jlPyApply(func, pyobj1, pyobj2)applies the Python functionfuncform the module __main__ to the Python objectspyobj1andpyobj2.
- jlPyApply: (String, %, %, %) -> %
jlPyApply(func, pyobj1, pyobj2, pyobj3)applies the Python functionfuncform the module __main__ to the Python objectspyobj1,pyobj2andpyobj3.
- jlPyApply: (String, %, %, %, %) -> %
jlPyApply(func, pyobj1, pyobj2, pyobj3, pyobj4)applies the Python functionfuncform the module __main__ to the Python objectspyobj1,pyobj2,pyobj3andpyobj4.
- jlPyApply: (String, %, %, %, %, %) -> %
jlPyApply(func, pyobj1, pyobj2, pyobj3, pyobj4, pyobj5)applies the Python functionfuncform the module __main__ to the Python objectspyobj1,pyobj2,pyobj3,pyobj4andpyobj5.
- jlPyApply: (String, String, %) -> %
jlPyApply(mod, func, pyobj)applies the Python functionfuncfrom the modulemodto 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 functionfuncfrom the modulemodto the Python objectspyobj1andpyobj2
- jlPyApply: (String, String, %, %, %) -> %
jlPyApply(mod, func, pyobj1, pyobj2, pyobj3)applies the Python functionfuncfrom the modulemodto the Python objectspyobj1,pyobj2andpyobj3.
- jlPyApply: (String, String, %, %, %, %) -> %
jlPyApply(mod, func, pyobj1, pyobj2, pyobj3, pyobj4)applies the Python functionfuncfrom the modulemodto the Python objectspyobj1,pyobj2,pyobj3andpyobj4.
- jlPyApply: (String, String, %, %, %, %, %) -> %
jlPyApply(mod, func, pyobj1, pyobj2, pyobj3, pyobj4, pyobj5)applies the Python functionfuncfrom the modulemodto the Python objectspyobj1,pyobj2,pyobj3,pyobj4andpyobj5.
- jlPyApply: (String, String, String, %) -> %
jlPyApply(mod1, mod2, func, pyobj)applies the Python functionfuncfrom the modulemod1.mod2to the Python object pyobj.
- jlPyApply: (String, String, String, %, %) -> %
jlPyApply(mod1, mod2, func, pyobj1, pyobj2)applies the Python functionfuncfrom the modulemod1.mod2to the Python objectspyobj1andpyobj2.
- jlPyApply: (String, String, String, %, %, %) -> %
jlPyApply(mod1, mod2, func, pyobj1, pyobj2, pyobj3)applies the Python functionfuncfrom the modulemod1.mod2to the Python objectspyobj1,pyobj2andpyobj3.
- jlPyApply: (String, String, String, %, %, %, %) -> %
jlPyApply(mod1, mod2, func, pyobj1, pyobj2, pyobj3, pyobj4)applies the Python functionfuncfrom the modulemod1.mod2to the Python objectspyobj1,pyobj2,pyobj3andpyobj4.
- jlPyApply: (String, String, String, %, %, %, %, %) -> %
jlPyApply(mod1, mod2, func, pyobj1, pyobj2, pyobj3, pyobj4, pyobj5)applies the Python functionfuncfrom the modulemod1.mod2to the Python objectspyobj1,pyobj2,pyobj3,pyobj4andpyobj5.
- jlPyConvert: (String, %) -> JLObject
jlPyConvert(type, pyobj)converts the Python object pyobj to the Juliatype‘type’.
- jlPyDocumentation: String -> Void
jlPyDocumentation(obj)displays the Python documentation for the Python objectobj. Use'q'followed by ENTER to quit.
- jlPyImport: String -> %
jlPyImport(mod)imports the Python modulemodin the Julia Python environment.
- jlPyRepr: % -> %
jlPyRepr(pyobj)returns the Julia Python object representing the Python objectpyobj.
- jlPyType: % -> %
jlPyType(pyobj)returns the Python type of the Python objectpyobj.
- 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 objectobjto a Julia Python object. Use jlDisplay(pyobj) to display the Python object pyobj.
- jpython: String -> %
jpython(str)coerces the stringstrto 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 ofobj.- qelt: (%, Integer) -> JLObject
from JLObjectAggregate
- qelt: (%, JLSymbol) -> %
qelt(obj, sym)returns the property/elementsymofobj. No checks are done regarding the existence of thesymproperty. If it does not exist, Julia throws an error.- qelt: (%, JLSymbol) -> JLObject
from JLObjectAggregate
- size?: (%, NonNegativeInteger) -> Boolean
from Aggregate