WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

Endpoint
Name:PythonRuntime
Description:
Id:PythonRuntime
Category:accessor
Identifier Syntax

PythonRuntime is an accessor using Active URI syntax with the following base identifiers:

Base
active:python

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
operator
Mandatory
Representation (java.lang.Object)(no description available)
varargs [varargs] Any quantityRepresentation (java.lang.Object)Varargs allows an arbitrary number of additional unspecified arguments.
Request Verbs

The following verbs are supported:

Verbs
SOURCESINKEXISTSDELETENEW
Response

The response representation of this accessor for SOURCE requests is unknown.

This accessor throws no documented exceptions.

Import Requirements

To use PythonRuntime accessor you must import the module urn:org:netkernel:lang:python:

<import>
  <uri>urn:org:netkernel:lang:python</uri>
</import>

The Python language runtime executes compiled Python programs.

NKF context Object

Each invoked Python script is provided with a global context variable which is an instance of INKFRequestContext

For example to make a SOURCE request in python ...

context.source("res:/myresource")