Method Process
Process<TSource>(IObservable<TSource>)
Executes a Python script in the specified top-level module whenever an observable sequence emits a notification.
public override IObservable<PyModule> Process<TSource>(IObservable<TSource> source)
Parameters
sourceIObservable<TSource>The sequence of notifications used to trigger execution of the Python script.
Returns
- IObservable<PyModule>
A sequence of Python.Runtime.PyModule objects representing the top-level module where each Python script was executed.
Type Parameters
TSourceThe type of the elements in the
sourcesequence.
Process(IObservable<PyModule>)
Executes a Python script in an observable sequence of modules.
public IObservable<PyModule> Process(IObservable<PyModule> source)
Parameters
sourceIObservable<PyModule>The sequence of modules in which to execute the Python script.
Returns
- IObservable<PyModule>
An observable sequence that is identical to the
sourcesequence but where there is an additional side effect of executing the Python script in each of the Python.Runtime.PyModule objects.
Process(IObservable<RuntimeManager>)
Executes a script in the main module of the Python runtime.
public IObservable<PyModule> Process(IObservable<RuntimeManager> source)
Parameters
sourceIObservable<RuntimeManager>A sequence containing the Python runtime in which to execute the script.
Returns
- IObservable<PyModule>
A sequence containing the Python.Runtime.PyModule object representing the top-level module where the Python script was executed.