Datalayer VS Code Extension - v0.0.9
Preparing search index...
src/types/pyodide
PyodideInterface
Interface PyodideInterface
interface
PyodideInterface
{
globals
:
any
;
loadedPackages
:
Record
<
string
,
string
>
;
pyodide_py
:
any
;
version
:
string
;
checkInterrupt
()
:
void
;
isPyProxy
(
value
:
any
)
:
boolean
;
loadPackage
(
packages
:
string
|
string
[]
)
:
Promise
<
void
>
;
loadPackagesFromImports
(
code
:
string
)
:
Promise
<
void
>
;
registerJsModule
(
name
:
string
,
module
:
any
)
:
void
;
runPython
(
code
:
string
,
options
?:
{
globals
?:
any
;
locals
?:
any
}
)
:
any
;
runPythonAsync
(
code
:
string
,
options
?:
{
globals
?:
any
;
locals
?:
any
}
,
)
:
Promise
<
any
>
;
setInterruptBuffer
(
buffer
:
Uint8Array
)
:
void
;
toPy
(
obj
:
any
)
:
any
;
unregisterJsModule
(
name
:
string
)
:
void
;
[
key
:
string
]:
any
;
}
Indexable
[
key
:
string
]:
any
Index
Properties
globals
loaded
Packages
pyodide_
py
version
Methods
check
Interrupt
is
Py
Proxy
load
Package
load
Packages
From
Imports
register
Js
Module
run
Python
run
Python
Async
set
Interrupt
Buffer
to
Py
unregister
Js
Module
Properties
globals
globals
:
any
loaded
Packages
loadedPackages
:
Record
<
string
,
string
>
pyodide_
py
pyodide_py
:
any
version
version
:
string
Methods
check
Interrupt
checkInterrupt
()
:
void
Returns
void
is
Py
Proxy
isPyProxy
(
value
:
any
)
:
boolean
Parameters
value
:
any
Returns
boolean
load
Package
loadPackage
(
packages
:
string
|
string
[]
)
:
Promise
<
void
>
Parameters
packages
:
string
|
string
[]
Returns
Promise
<
void
>
load
Packages
From
Imports
loadPackagesFromImports
(
code
:
string
)
:
Promise
<
void
>
Parameters
code
:
string
Returns
Promise
<
void
>
register
Js
Module
registerJsModule
(
name
:
string
,
module
:
any
)
:
void
Parameters
name
:
string
module
:
any
Returns
void
run
Python
runPython
(
code
:
string
,
options
?:
{
globals
?:
any
;
locals
?:
any
}
)
:
any
Parameters
code
:
string
Optional
options
:
{
globals
?:
any
;
locals
?:
any
}
Returns
any
run
Python
Async
runPythonAsync
(
code
:
string
,
options
?:
{
globals
?:
any
;
locals
?:
any
}
,
)
:
Promise
<
any
>
Parameters
code
:
string
Optional
options
:
{
globals
?:
any
;
locals
?:
any
}
Returns
Promise
<
any
>
set
Interrupt
Buffer
setInterruptBuffer
(
buffer
:
Uint8Array
)
:
void
Parameters
buffer
:
Uint8Array
Returns
void
to
Py
toPy
(
obj
:
any
)
:
any
Parameters
obj
:
any
Returns
any
unregister
Js
Module
unregisterJsModule
(
name
:
string
)
:
void
Parameters
name
:
string
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
Properties
globals
loaded
Packages
pyodide_
py
version
Methods
check
Interrupt
is
Py
Proxy
load
Package
load
Packages
From
Imports
register
Js
Module
run
Python
run
Python
Async
set
Interrupt
Buffer
to
Py
unregister
Js
Module
Datalayer VS Code Extension - v0.0.9
Loading...