<< pyGet scithon pyList >>

scithon >> scithon > pyImport

pyImport

Imports and returns the python module passed.

Syntax

pyImport(string Module_Name)
Module_Name

The module to be imported like numpy, builtins etc.

Description

Imports a python module and is assigned to a variable, which can be later used by the variable.

Example

--> Py = pyImport("builtins")
Py  = 

<module 'builtins' (built-in)>
--> var = Py.complex(1,2)
var  = 

(1+2j)

Report an issue
<< pyGet scithon pyList >>