Questions tagged [rx-py]

Reactive Extensions for Python

RxPY is a library for composing asynchronous and event-based programs using observable collections and LINQ-style query operators in Python.

RxPY is open sourced and available under the Apache License, Version 2.0

96 questions
0
votes
1 answer

Update pyqtgraph plot from RxPy observable

In the following script, a plot window is created and values are correctly passed to plot.update. However, the plot is not updating. What am I doing wrong? import sys import time import numpy from numpy import pi import rx from rx.concurrency…
lafras
  • 8,712
  • 4
  • 29
  • 28
0
votes
1 answer

buffer_with_count behavior is different on an interval observable than on a range observable. Why?

I am trying out RxPy and I am not understanding this behavior for the buffer_with_count operator: Scenario 1: An interval observable This one works as I expect. No Buffer >>>…
Carlos Mermingas
  • 3,822
  • 2
  • 21
  • 40
0
votes
1 answer

Trigger a function when any property of an object changes with RxPy

In RxPy, is there anything similar to INotifyPropertyChanged in .NET framework mentioned here? I'm trying to add an observer to an object, so that any property of the object changes, a function will be called.
Danny Wang
  • 429
  • 9
  • 24
0
votes
1 answer

RxPy with_latest_from producing inconsistent results

I'm using group_by on an Observable but for each newly created group, I want to snap the element (with the new key) that caused the group to be created using with_latest_from: >>> from __future__ import print_function >>> from rx import…
mchen
  • 9,808
  • 17
  • 72
  • 125
0
votes
1 answer

How can I extract values from an Rx Observable?

I am attempting to integrate some ReactiveX concepts into an existing project, thinking it might be good practice and a way to make certain tasks cleaner. I open a file, create an Observable from its lines, then do some filtering until I get just…
Eric
  • 2,300
  • 3
  • 22
  • 29
0
votes
1 answer

How to dispose of an observable on completion of another observable?

I have a source observable which I subscribe to with a logger observer for logging purposes. I also subscribe to source so I can perform computations. When my computations are completed, I'm done with source and I want to dispose of the logger: …
mchen
  • 9,808
  • 17
  • 72
  • 125
1 2 3 4 5 6
7