Leo Gao
Leo Gao
> Hey, sorry, this code is really long and complicated... are you able to find a more minimal test case that reproduces the bug? Let me give a shorter test...
> https://github.com/plotly/plotly.py/blob/956ab2cd158f0d20b322aa49e2f717a56aa6b9e2/packages/python/plotly/plotly/basewidget.py#L857 > > I'm getting the following error from line 857 in basewidget.py: > > `ValueError: The truth value of an array with more than one element is ambiguous....
In the code of **`plotly`**, many **`non-empty`** checks for the data are written incorrectly, using a shorthand that actually performs a check for **`true`** and **`false`** values. These check statements...
Just use `pyswarms`