Table of Contents

Class GetRuntime

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

Represents an operator that gets the Python runtime object which can be used to import modules, evaluate expressions, and pass data to and from Python.

public class GetRuntime : Source<RuntimeManager>
Inheritance
GetRuntime
Inherited Members

Remarks

The runtime object notification is emitted while holding the global interpreter lock.

Methods

Generate()

Wraps an observable sequence to ensure all notifications are emitted while holding the Python global interpreter lock.

public override IObservable<RuntimeManager> Generate()

Returns

IObservable<RuntimeManager>

An observable sequence that returns the active RuntimeManager object on subscription. The value is emitted while holding the global interpreter lock.