{"action":"closed","issue":{"url":"https://api.github.com/repos/jupyter-incubator/dashboards/issues/38","labels_url":"https://api.github.com/repos/jupyter-incubator/dashboards/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/jupyter-incubator/dashboards/issues/38/comments","events_url":"https://api.github.com/repos/jupyter-incubator/dashboards/issues/38/events","html_url":"https://github.com/jupyter-incubator/dashboards/issues/38","id":112239425,"number":38,"title":"Deployed dashboard errors out when trying to use Urth widgets channel","user":{"login":"jhpedemonte","id":711365,"avatar_url":"https://avatars.githubusercontent.com/u/711365?v=3","gravatar_id":"","url":"https://api.github.com/users/jhpedemonte","html_url":"https://github.com/jhpedemonte","followers_url":"https://api.github.com/users/jhpedemonte/followers","following_url":"https://api.github.com/users/jhpedemonte/following{/other_user}","gists_url":"https://api.github.com/users/jhpedemonte/gists{/gist_id}","starred_url":"https://api.github.com/users/jhpedemonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhpedemonte/subscriptions","organizations_url":"https://api.github.com/users/jhpedemonte/orgs","repos_url":"https://api.github.com/users/jhpedemonte/repos","events_url":"https://api.github.com/users/jhpedemonte/events{/privacy}","received_events_url":"https://api.github.com/users/jhpedemonte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jupyter-incubator/dashboards/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jupyter-incubator/dashboards/labels/in%20progress","name":"in progress","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-19T21:43:59Z","updated_at":"2015-10-21T16:43:53Z","closed_at":"2015-10-21T16:43:53Z","body":"To recreate:\r\n\r\n- Create a new dashboard with this code cell:\r\n\r\n```\r\nfrom urth.widgets.widget_channels import channel\r\nchannel('foobar').set('baz', 'awesome');\r\n```\r\n\r\n- Run **File > Deploy as > Local Dashboard**.\r\n- Open browser error console and notice this error:\r\n\r\n```\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-1-9054bc59971b> in <module>()\r\n      1 from urth.widgets.widget_channels import channel\r\n----> 2 channel('foobar').set('baz', 'awesome');\r\n\r\n/opt/conda/lib/python3.4/site-packages/urth/widgets/widget_channels.py in set(self, key, value, **kwargs)\r\n     75     def set(self, key, value, **kwargs):\r\n     76         global the_channels\r\n---> 77         the_channels.set(key, value, self.chan, **kwargs)\r\n     78 \r\n     79     def watch(self, key, handler):\r\n\r\nAttributeError: 'NoneType' object has no attribute 'set'\r\n```\r\n\r\n@lbustelo says that the `channel` code is initialized when the notebook receives a kernel ready event. I think we may be executing all code cells before that can happen.  Perhaps this is due to how we invoke `executeAll` in [main.js](https://github.com/jupyter-incubator/dashboards/blob/926edf315fcf2261ad998517a01cdbcf1257335c/urth/dashboard/converter/static/main.js#L41-L50) -- need to wait for Urth widgets to fully initialize?"}}