Coder Social home page Coder Social logo

Comments (8)

wellecks avatar wellecks commented on June 12, 2024

I'm starting to investigate why we are seeing these errors

from declarativewidgets.

parente avatar parente commented on June 12, 2024

Have seen this often in dashboards that use widgets. You probably know it, but the JS left over on the page seems to execute using channels that no longer exist. Have never seen it cause a problem other than the noise in the log.

from declarativewidgets.

lbustelo avatar lbustelo commented on June 12, 2024

I traces it a while back to local storage and ipywidgets widgetmanager. When we create a widgetmodel, the comm info gets stored in local storage to support page refreshes. On a refresh, widgetmanager tries to reconnect.

Now, this error I think happens after rebooting the whole notebook and still having the old comm info associated with the page's url.

We should investigate if refresh works for us and open a separate issue if not.

Gino B.

On Oct 2, 2015, at 10:58 AM, Peter Parente [email protected] wrote:

Have seen this often in dashboards that use widgets. You probably know it, but the JS left over on the page seems to execute using channels that no longer exist. Have never seen it cause a problem other than the noise in the log.

β€”
Reply to this email directly or view it on GitHub.

from declarativewidgets.

wellecks avatar wellecks commented on June 12, 2024

Right - it looks like the notebook saves the widget manager's state (which include each widget's state) in local storage. It then requests the kernel-side state (via comm message) on refresh using the state in local storage, which may have comms that no longer exist in the kernel

from declarativewidgets.

wellecks avatar wellecks commented on June 12, 2024

So there's an extra step in reproducing it - in between steps 3 and 4, restart the kernel. This clears out the kernel's comms, while the comm's are still around in the local storage

from declarativewidgets.

wellecks avatar wellecks commented on June 12, 2024

It turns out that the same error message occurs with IPython widgets. In a fresh notebook:

from IPython.html import widgets
from IPython.display import display

w = widgets.FloatSlider(value=0,min=0,max=200,step=1)
display(w)

then run cells, save, restart the kernel, and refresh

from declarativewidgets.

wellecks avatar wellecks commented on June 12, 2024

It looks like they may have fixed this in ipywidgets 4.0: jupyter-widgets/ipywidgets#62 (see 'request_state is not called for invalid ids'). We're using the IPython 3.0 widgets here though.

I think since it is/was a known issue that is independent of our widgets, we should close this. Thoughts?

from declarativewidgets.

lbustelo avatar lbustelo commented on June 12, 2024

I agree with closing.

Gino B.

On Oct 2, 2015, at 1:27 PM, Sean Welleck [email protected] wrote:

It looks like they may have fixed this in ipywidgets 4.0: jupyter-widgets/ipywidgets#62 (see 'request_state is not called for invalid ids'). We're using the IPython 3.0 widgets here though.

I think since it is/was a known issue that is independent of our widgets, we should close this. Thoughts?

β€”
Reply to this email directly or view it on GitHub.

from declarativewidgets.

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.