{"action":"opened","issue":{"url":"https://api.github.com/repos/pyviz/EarthSim/issues/54","repository_url":"https://api.github.com/repos/pyviz/EarthSim","labels_url":"https://api.github.com/repos/pyviz/EarthSim/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/pyviz/EarthSim/issues/54/comments","events_url":"https://api.github.com/repos/pyviz/EarthSim/issues/54/events","html_url":"https://github.com/pyviz/EarthSim/issues/54","id":318034134,"number":54,"title":"Annotators and parambokeh widget compatibility","user":{"login":"kcpevey","id":15659110,"avatar_url":"https://avatars3.githubusercontent.com/u/15659110?v=4","gravatar_id":"","url":"https://api.github.com/users/kcpevey","html_url":"https://github.com/kcpevey","followers_url":"https://api.github.com/users/kcpevey/followers","following_url":"https://api.github.com/users/kcpevey/following{/other_user}","gists_url":"https://api.github.com/users/kcpevey/gists{/gist_id}","starred_url":"https://api.github.com/users/kcpevey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcpevey/subscriptions","organizations_url":"https://api.github.com/users/kcpevey/orgs","repos_url":"https://api.github.com/users/kcpevey/repos","events_url":"https://api.github.com/users/kcpevey/events{/privacy}","received_events_url":"https://api.github.com/users/kcpevey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T13:39:05Z","updated_at":"2018-04-26T13:39:05Z","closed_at":null,"author_association":"COLLABORATOR","body":"I can create a couple simple param widgets:  \r\n  \r\n```\r\nclass reservoirLevel(param.Parameterized):\r\n    select_type           = param.ObjectSelector(default=\"Depth\",objects=[\"Water level\",\"Depth\"], precedence=1)\r\n    value                 = param.Number(5.8, precedence=2)\r\n    hotstart_exists       = param.Boolean(False, doc=\"Use existing hotstart file\", precedence=3) \r\n\r\nparambokeh.Widgets(reservoirLevel)\r\n```\r\nBut if I try to add these to a drawing with the overlay feature `+`, I'm getting the following error:\r\n```\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-9-cff6a06211a4> in <module>()\r\n     13 # visualize\r\n     14 (viz.tiles * datashade(trimesh2.edgepaths) * viz.polys * viz.poly_view.options(apply_ranges=False) * viz.points +\r\n---> 15                   viz.poly_table + viz.point_table + parambokeh.Widgets(reservoirLevel)).options(shared_datasource=True).cols(1)\r\n\r\nC:\\ProgramData\\Anaconda3\\envs\\ers\\lib\\site-packages\\holoviews\\core\\layout.py in __add__(self, other)\r\n    548 \r\n    549     def __add__(self, other):\r\n--> 550         return Layout.from_values([self, other])\r\n    551 \r\n    552 \r\n\r\nC:\\ProgramData\\Anaconda3\\envs\\ers\\lib\\site-packages\\holoviews\\core\\layout.py in from_values(cls, vals)\r\n    388         elements or just a single viewable element.\r\n    389         \"\"\"\r\n--> 390         return cls(items=cls._process_items(vals))\r\n    391 \r\n    392 \r\n\r\nC:\\ProgramData\\Anaconda3\\envs\\ers\\lib\\site-packages\\holoviews\\core\\layout.py in _process_items(cls, vals)\r\n    404         items = []\r\n    405         counts = defaultdict(lambda: 1)\r\n--> 406         cls._unpack_paths(vals, items, counts)\r\n    407         items = cls._deduplicate_items(items)\r\n    408         return items\r\n\r\nC:\\ProgramData\\Anaconda3\\envs\\ers\\lib\\site-packages\\holoviews\\core\\layout.py in _unpack_paths(cls, objs, items, counts)\r\n    445                 continue\r\n    446             new = path is None or len(path) == 1\r\n--> 447             path = get_path(item) if new else path\r\n    448             new_path = make_path_unique(path, counts, new)\r\n    449             items.append((new_path, obj))\r\n\r\nC:\\ProgramData\\Anaconda3\\envs\\ers\\lib\\site-packages\\holoviews\\core\\util.py in get_path(item)\r\n   1383             path = path[:1]\r\n   1384     else:\r\n-> 1385         path = (item.group, item.label) if item.label else (item.group,)\r\n   1386     return tuple(capitalize(fn(p)) for (p, fn) in zip(path, sanitizers))\r\n   1387 \r\n\r\nAttributeError: 'NoneType' object has no attribute 'label'\r\n```\r\nThe error appears after the widget displays, but none of the other plotting displayed. Is it not possible/recommended to add widgets this way?\r\n"}}
{"actor":{"display_login":"kcpevey"}}