Comments (8)
I'm starting to investigate why we are seeing these errors
from declarativewidgets.
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.
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.
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.
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.
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.
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.
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)
- declarativewidgets not working HOT 5
- Documentation not found HOT 1
- Need to modify scala build to install toree from apache's dist server and not pypi HOT 3
- R declarative widgets donβt actually depend on SparkR HOT 4
- Move to https://github.com/jupyter-widgets? HOT 7
- Error enabling on OSX with matplotlib 2.0 installed
- Associated repo website is 404 HOT 2
- Changing DataFrame Limit HOT 3
- widgets failing to load after notebook closed and reopened HOT 1
- dom-bind-behavior bug against Polymer 1.9
- urth-import fails with POLYMER package ECONFLICT
- urth-viz-table, selectionIndex property doesn't work
- Install declarativewidgets without "pip install"
- Link to latest docs is broken HOT 2
- Edit license and rename file to LICENSE
- Date Picker
- Broken links
- Is declarative widgets maintained? HOT 13
- Some extension like Explorer visualization HOT 1
- Why was it retired? Are there any follow-up projects like this? HOT 1
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 declarativewidgets.