JLObjPy¶
jobject.spad line 938 [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)
coercesf
to a Julia Python object.
- coerce: Integer -> %
coerce(i)
coerces the integeri
to a Julia Python object.
- coerce: String -> %
coerce(str)
coerces the stringstr
to a Julia Python string object.
- convert: % -> String
from ConvertibleTo String
- jlAbout: % -> Void
from JLObjectType
- jlApply: (String, %) -> %
from JLObjectType
- jlApply: (String, %, %) -> %
from JLObjectType
- jlApply: (String, %, %, %) -> %
from JLObjectType
- jlApply: (String, %, %, %, %) -> %
from JLObjectType
- jlApply: (String, %, %, %, %, %) -> %
from JLObjectType
- jlDisplay: % -> Void
from JLObjectType
- jlDump: JLObject -> Void
from JLObjectType
- jlId: % -> JLInt64
from JLObjectType
- jlObject: () -> String
from JLObjectType
- jlPyApply: (String, String, %) -> %
jlPyApply(mod, func, pyobj)
applies the Python functionfunc
from the modulemod
to 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]. jlApply(“math”, “sqrt”, 2) computes the square root of 2.
- jlPyApply: (String, String, %, %) -> %
jlPyApply(mod, func, pyobj1, pyobj2)
applies the Python functionfunc
from the modulemod
to the Python objectspyobj1
andpyobj2
- jlPyApply: (String, String, %, %, %) -> %
jlPyApply(mod, func, pyobj1, pyobj2, pyobj3)
applies the Python functionfunc
from the modulemod
to the Python objectspyobj1
,pyobj2
andpyobj3
.
- jlPyApply: (String, String, %, %, %, %) -> %
jlPyApply(mod, func, pyobj1, pyobj2, pyobj3, pyobj4)
applies the Python functionfunc
from the modulemod
to the Python objectspyobj1
,pyobj2
,pyobj3
andpyobj4
.
- jlPyApply: (String, String, %, %, %, %, %) -> %
jlPyApply(mod, func, pyobj1, pyobj2, pyobj3, pyobj4, pyobj5)
applies the Python functionfunc
from the modulemod
to the Python objectspyobj1
,pyobj2
,pyobj3
,pyobj4
andpyobj5
.
- jlPyConvert: (%, String) -> JLObject
jlPyConvert(pyobj, type)
converts the Python objectpyobj
to the Julia type ‘type’.
- jlPyDocumentation: String -> Void
jlPyDocumentation(obj)
displays the Python documentation for the Python objectobj
.
- jlPyImport: String -> %
jlPyImport(mod)
imports the Python modulemod
in the Julia Python environment.
- jlRef: % -> SExpression
from JLObjectType
- jlref: String -> %
from JLObjectType
- jlType: % -> String
from JLObjectType
- jpyobj: String -> %
jpyobj(str)
coerces the stringstr
to 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