Table of Contents

Method Process

Namespace
Bonsai.Scripting.Python
Assembly
Bonsai.Scripting.Python.dll

Process(IObservable<PyModule>)

Gets the value of the specified variable in each of the Python modules in an observable sequence.

public IObservable<PyObject> Process(IObservable<PyModule> source)

Parameters

source IObservable<PyModule>

The sequence of modules from which to get the value of the specified variable.

Returns

IObservable<PyObject>

A sequence of Python.Runtime.PyObject handles representing the value of the specified variable for each of the modules in the source sequence.

Process(IObservable<RuntimeManager>)

Gets the value of the specified variable in the main module of the Python runtime.

public IObservable<PyObject> Process(IObservable<RuntimeManager> source)

Parameters

source IObservable<RuntimeManager>

A sequence containing the Python runtime from which to get the value of the specified variable.

Returns

IObservable<PyObject>

A sequence of Python.Runtime.PyObject handles representing the value of the specified variable in the main module of the Python runtime.