-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Description
What happened:
Received AttributeError: 'VBox' object has no attribute '_ipython_display_' when calling cluster_options from within a Jupyter notebook.

What you expected to happen:
The options widget should be shown correctly, as expected.
Minimal Complete Verifiable Example:
from dask_gateway import Gateway
gt = Gateway()
options = gt.cluster_options()
optionsAnything else we need to know?:
Environment:
- dask-gateway: 2022.4.0
- Dask version: 2022.4.2
- Python version: 3.9.13
- Operating System: Linux
- Install method (conda, pip, source): conda
Extra
The reason for the above issue seems to be that Ipywidgets latest available version 8.0.0 removed the on_display method in place of _repr_mimebundle_ (see ref.) and the Dask-gateway client still uses the old call:
dask-gateway/dask-gateway/dask_gateway/client.py
Lines 1222 to 1230 in 376b4a2
| def _ipython_display_(self, **kwargs): | |
| widget = self._widget() | |
| if widget is not None: | |
| return widget._ipython_display_(**kwargs) | |
| else: | |
| from IPython.display import display | |
| data = {"text/plain": repr(self), "text/html": self._repr_html_()} | |
| display(data, raw=True) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels