Skip to content

broken repr in ipython 8 w/ ipywidgets installed #5914

@dchudz

Description

@dchudz
In [1]: from dask.distributed import LocalCluster

In [2]: cluster = LocalCluster()

In [3]: cluster
Out[3]: Tab(children=(HTML(value='<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-outpu…

Some relevant versions:

ipython                        8.1.1
distributed                    2022.2.0
ipywidgets                     7.6.5

Either of the following make the cluster repr go back to what it should be:

  • uninstalling ipywidgets
  • downgrading to ipython 7

This is the relevant change going from ipython 7 to 8: ipython/ipython#12315. It looks like ipython is attempting to render the widget repr, which doesn't make sense. I don't know whether this is something dask should fix, or if the "real" fix is further upstream in ipython.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions