ipysankeywidget: Example don't working

Hello,

I tried to run the sript “Simple example” and I get the TypeError:

TypeError                                 Traceback (most recent call last)
<ipython-input-10-dda820b7c5a3> in <module>()
      1 
      2 
----> 3 w = SankeyWidget(links=links, margins=dict(top=0, bottom=0, left=50, right=100))

TypeError: wrap() got an unexpected keyword argument 'links'

I have anaconda with Python 3.4, it’s doesn’t work in Spyder and in the qtconsole either.

Is this error known?

Thanks for help and best regards.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Jupyter widgets only work in the Jupyter notebook or Jupyterlab – they won’t work in the qt console

On May 30, 2018 10:04:11 AM GMT+01:00, Alexander Hobert notifications@github.com wrote:

Hello,

yes I tried this today again and the error doesn’t appear longer. But qt doesn’t show the diagramm in the console.

It’s appear only the “SankeyWidget” object with the links parameter like so:

w
SankeyWidget(links=[{'value': 2, 'source': 'start', 'target': 'A'},
{'value': 2, 'source': 'A', 'target': 'B'}…

Gives another way to show the figure, like matplotlib with a methode “show”?

Tanks for help.

– You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ricklupton/ipysankeywidget/issues/29#issuecomment-393086860