Giter Club home page Giter Club logo

Comments (6)

avirshup avatar avirshup commented on May 27, 2024

The main python REPL loop runs in the same thread as the widgets event loop. This means that widgets don't work while you're executing code, even if it's sleeping.

The default "widget-ey" way to address this is to move more logic to javascript, which can respond to button presses right away. That's limited, though, and means more duplicated info between kernels.

References:
See also:
jupyter-widgets/ipywidgets#349
jupyter-widgets/ipywidgets#642

from molecular-design-toolkit.

avirshup avatar avirshup commented on May 27, 2024

Moving this up in priority; it turns out to be confusing, even for me, when a command launches multiple cloud jobs - their statuses don't get updated until ipywidgets can get control of the python kernel.

from molecular-design-toolkit.

justinmc avatar justinmc commented on May 27, 2024

@avirshup Is there an easy place in the examples or tutorials where I can reproduce this?

from molecular-design-toolkit.

avirshup avatar avirshup commented on May 27, 2024

@justinmc - MDT example 1, in the mdt.assign_forcefield line, is probably the easiest place to see it - none of the jobs will show as "finished" until they all are.

It will probably be a pretty big deal to fix this - probably, for the next sprint, we'll need to schedule some time just to investigate the problem.

from molecular-design-toolkit.

justinmc avatar justinmc commented on May 27, 2024

Ok got it, thanks. I'll keep this in mind as I'm exploring the python stuff for now.

from molecular-design-toolkit.

avirshup avatar avirshup commented on May 27, 2024

Closing for now as we re-think these interfaces. This would be nice, but I don't see it on our roadmap for now

from molecular-design-toolkit.

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.