Open thewtex opened 6 months ago
@bnmajor Viewers run with #731 but getters still failing with
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[6], line 1
----> 1 viewer.get_rotate()
File /lib/python3.10/site-packages/itkwidgets/viewer.py:324, in Viewer.fetch_value.<locals>._fetch_value(self, *args, **kwargs)
322 if isawaitable(result):
323 future = asyncio.ensure_future(result)
--> 324 self.call_getter(future)
325 return future
326 return result
File /lib/python3.10/site-packages/itkwidgets/viewer.py:288, in Viewer.call_getter(self, future)
286 global _cell_watcher
287 name = uuid.uuid4()
--> 288 _cell_watcher.results[name] = future
289 future.add_done_callback(functools.partial(_cell_watcher._callback, name))
AttributeError: 'NoneType' object has no attribute 'results'
As discussed with @bnmajor, we will need to teach CellWatcher to operate on the Jupyter message stream in JupyterLite as we do with JupyterNotebook / JupyterLab with the ZMQStream.
@bnmajor looking to update our docs JupyterLite itkwidgets version, and I am getting the following traceback: