Comments (10)
Should we have some logic for this in disconnect as well? Should we have a separate method which searches the graph for references to a node and deletes them?
from streamz.
I would implement this by using weakref.Weakset
objects. Python would handle this for us automatically
from streamz.
Ah I see, to properly implement this we would need to have at least one hard reference (which the user needs to keep track of) since all the internal graph references would be weak. I presume that weakref
properly propagates the hard reference to one node to all the other nodes?
from streamz.
Yes
from streamz.
Or rather, I am not currently concerned about if this is possible or how to implement it. I am more curious to know if we want these semantics or not.
from streamz.
I'm on board with this, although I'm a little curious what happens to the other nodes if we delete the bottom most node.
from streamz.
Sorry, I never saw this. I would have disagreed. I would have voted more for a better way to view parents and children and have their references returned.
My main issue is that this will lead to an inconsistency between usage in ipython and running in a script. See #72. I am fine with going through with it, so long as we're all okay with this. We'll have to definitely document this potentially surprising behaviour to a new user. Thanks, and sorry for being late on this.
from streamz.
I think we should have "a better way to view parents and children and have their references returned" anyway. Especially if we want users to start playing with the pipeline live.
from streamz.
I agree. I'm not sure how to make this actionable. Will think about it. Perhaps the stream should have an s.pprint() method? (which would plot a graph like print inline, sort of like git log --graph or simliar?)
We can make it an issue
from streamz.
I think we could actually return the graph it self (as some sort of DiGraph object) so that people could operate upon the graph (connecting/disconnecting nodes) and have that translated down to the streams level.
from streamz.
Related Issues (20)
- How to store information from PeriodicDataFrame HOT 1
- How to load initial state or backfill the stream dataframe HOT 2
- missing positional argument: 'topic' in to_mqtt HOT 5
- How to parametrize stream/pipeline creation? HOT 2
- Passing Username and Password to from_mqtt() HOT 4
- Dynamically add upstreams to zip HOT 2
- Dropping `pkg_resources`
- AttributeError: 'Output' object has no attribute '_ipython_display_' HOT 3
- flatten doesn't work with iterables without defined length HOT 2
- visualizing streams and changing variables during runtime HOT 5
- Is it possible to use event time/syntethic time rather than system time? HOT 2
- Time based lookback window? HOT 1
- Streamz not working in Jupyterlite
- Collect does not allow awaitable sinks
- Quickstart lacks conda/environments/streamz_dev.yml HOT 6
- Hello from LorryStream and Kotori / Streamz is cool HOT 1
- Add pytest fixture to clean up the IO loop HOT 4
- Streamz hvplot resets zoom and pan on each update HOT 3
- streamz's typing system can't work properly in vscode HOT 1
- Streamz with websocket not steaming any data HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamz.