Skip to content

DiffusionTrend visualization breaks with Bokeh >=3 due to deprecated 'legend' argument #266

@anna-alexandrova

Description

@anna-alexandrova

When running a visualization in NDlib using DiffusionTrend, the code fails with:
KeyError: 'legend'
The error seems to originate from the use of the deprecated 'legend' argument in:
ndlib/viz/bokeh/DiffusionViz.py
Example line:
p.line(..., legend=self.srev[k], ...)
In Bokeh >=3 the correct argument is 'legend_label' (my installed version is 3.8.0)
Python 3.11
NDlib 5.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions