JLObjPy¶
jobject.spad line 1075 [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 has to 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.
- 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
- 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
- jlGetProperty: (%, JLSymbol) -> JLObject
from JLObjectType
- jlId: % -> JLInt64
from JLObjectType
- jlObject: () -> String
from JLObjectType
- jlPropertyNames: % -> JLObject
from JLObjectType
- 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. example{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.
- 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.
- jlRef: % -> SExpression
from JLObjectType
- jlref: String -> %
from JLObjectType
- jlText: (%, String) -> List String
from JLObjectType
- jlType: % -> String
from JLObjectType
- jpyobj: String -> %
jpyobj(str)coerces the stringstrto a Julia Python object. Use jlDisplay(pyobj) to display the Python object pyobj.
- latex: % -> String
from SetCategory
- mutable?: % -> Boolean
from JLObjectType
- nothing?: % -> Boolean
from JLObjectType