GithubHelp home page GithubHelp logo

Comments (5)

martindurant avatar martindurant commented on June 21, 2024

Are you saying that the on_open, on_message and on_close functions do run, but print_result does not?

You might also be interested in Stream.from_websocket which listens for incoming connections. A streamz native (async) client version would look very similar.

from streamz.

leahpence avatar leahpence commented on June 21, 2024

That is correct, I am not getting any data results window with streamz. Perhaps I am missing something on the way I use steamz code.....
When I am using python without streamz code all works good and print normal.

from streamz.

martindurant avatar martindurant commented on June 21, 2024

I am afraid I don't know. You are not using any async streamz stuff here, so the simplified code is essentially

source = Stream()
sink = source.map(print_result)
source.emit(df) # repeated for different df

which does indeed print.

from streamz.

leahpence avatar leahpence commented on June 21, 2024

Does Streamz work on Visual Studio Code.. or just in Jupiter Notebooks?

from streamz.

martindurant avatar martindurant commented on June 21, 2024

The auto-updating visual output is a jupyter-widget thing I don't know if VSCode shows those properly or not. streamz plotting via hvplot can work in a variety of browser platforms, including a standalone webapp; but, again, I don't know what VSCode does.

However, streamz's internals will continue to work anywhere, including a simple terminal, so if output is to a file, printed, or some other side-effect, those will work anyway.

from streamz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.