This error happens when expanding widgets to look into spatial_series data inside the Position group of Giocomo's lab nwb file:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\ipywidgets\widgets\widget.py in _handle_msg(self, msg)
674 if 'buffer_paths' in data:
675 _put_buffers(state, data['buffer_paths'], msg['buffers'])
--> 676 self.set_state(state)
677
678 # Handle a state request.
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\ipywidgets\widgets\widget.py in set_state(self, sync_data)
543 from_json = self.trait_metadata(name, 'from_json',
544 self._trait_from_json)
--> 545 self.set_trait(name, from_json(sync_data[name], self))
546
547 def send(self, content, buffers=None):
~\Anaconda3\envs\nwbn_conversion\lib\contextlib.py in __exit__(self, type, value, traceback)
117 if type is None:
118 try:
--> 119 next(self.gen)
120 except StopIteration:
121 return False
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\traitlets\traitlets.py in hold_trait_notifications(self)
1129 for changes in cache.values():
1130 for change in changes:
-> 1131 self.notify_change(change)
1132
1133 def _notify_trait(self, name, old_value, new_value):
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\ipywidgets\widgets\widget.py in notify_change(self, change)
604 # Send new state to front-end
605 self.send_state(key=name)
--> 606 super(Widget, self).notify_change(change)
607
608 def __repr__(self):
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\traitlets\traitlets.py in notify_change(self, change)
1174 c = getattr(self, c.name)
1175
-> 1176 c(change)
1177
1178 def _add_notifiers(self, handler, name, type):
c:\users\luiz\documents\github\nwb-jupyter-widgets\nwbwidgets\base.py in on_selected_index(change)
116 if change.new is not None and isinstance(change.owner.children[change.new], widgets.HTML):
117 children[change.new] = nwb2widget(list(d.values())[change.new], neurodata_vis_spec=neurodata_vis_spec,
--> 118 **pass_kwargs)
119 change.owner.children = children
120
c:\users\luiz\documents\github\nwb-jupyter-widgets\nwbwidgets\base.py in nwb2widget(node, neurodata_vis_spec, **pass_kwargs)
162 spec = neurodata_vis_spec[ndtype]
163 if isinstance(spec, dict):
--> 164 return lazy_tabs(spec, node)
165 elif callable(spec):
166 return vis2widget(spec(node, neurodata_vis_spec=neurodata_vis_spec, **pass_kwargs))
c:\users\luiz\documents\github\nwb-jupyter-widgets\nwbwidgets\base.py in lazy_tabs(in_dict, node)
142 tabs_spec = list(in_dict.items())
143
--> 144 children = [tabs_spec[0][1](node)] + [widgets.HTML('Rendering...')
145 for _ in range(len(tabs_spec) - 1)]
146 tab = widgets.Tab(children=children)
c:\users\luiz\documents\github\nwb-jupyter-widgets\nwbwidgets\behavior.py in show_spatial_series_over_time(node, **kwargs)
37 if ndims == 1:
38 fig, ax = plt.subplots()
---> 39 ax.plot(tt, data, **kwargs)
40 ax.set_xlabel('t (sec)')
41 if unit:
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\matplotlib\axes\_axes.py in plot(self, scalex, scaley, data, *args, **kwargs)
1664 """
1665 kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D._alias_map)
-> 1666 lines = [*self._get_lines(*args, data=data, **kwargs)]
1667 for line in lines:
1668 self.add_line(line)
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\matplotlib\axes\_base.py in __call__(self, *args, **kwargs)
223 this += args[0],
224 args = args[1:]
--> 225 yield from self._plot_args(this, kwargs)
226
227 def get_next_color(self):
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\matplotlib\axes\_base.py in _plot_args(self, tup, kwargs)
389 x, y = index_of(tup[-1])
390
--> 391 x, y = self._xy_from_xy(x, y)
392
393 if self.command == 'plot':
~\Anaconda3\envs\nwbn_conversion\lib\site-packages\matplotlib\axes\_base.py in _xy_from_xy(self, x, y)
268 if x.shape[0] != y.shape[0]:
269 raise ValueError("x and y must have same first dimension, but "
--> 270 "have shapes {} and {}".format(x.shape, y.shape))
271 if x.ndim > 2 or y.ndim > 2:
272 raise ValueError("x and y can be no greater than 2-D, but have "
ValueError: x and y must have same first dimension, but have shapes (81863,) and (81862,)