Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    You need to call w.send_state() after updating links, because the widget can only be aware of changes to the links list itself, not to changes to the elements of the list.
    There's not currently an event for hovering. If you just want to change the style you should be able to use CSS :hover property, see here: http://nbviewer.jupyter.org/github/ricklupton/ipysankeywidget/blob/master/examples/More%20examples.ipynb#Styling
    Oh yes, that's a good point -- ipywidgets also offers standalone embedding which should work out-of-the-box -- you can download the HTML/JS code from the Widgets menu in the notebook. That's what's used to embed the Sankey diagrams in the floWeaver documentation
    Michael
    @yourselvs
    Editing the CSS is super useful, and send_state() seems to work. However, it also seems like the link opacity always has a hardcoded style attribute in the html that sets the opacity to 0.8 no matter the link's actual opacity. It can't be changed by CSS styling.
    Michael
    @yourselvs
    Nevermind! I learned about the "!important" keyword, which is a good workaround for now.
    Michael
    @yourselvs
    Adding a modifiable .style attribute to SankeyWidget may be useful, but I've got everything I need right now, thanks for the help!
    Rick Lupton
    @ricklupton
    Yep, that's the way to do it. I don't know if it's possible to include a default CSS stylesheet with the widget, that would be easy to override without using !important. That would be good if possible.
    Ali Alsabbah
    @ali-alsabbah
    Hello @ricklupton I'm interested in working on creating conda packages for your stuff
    I believe that's issue #28 for ipysankeywidget and #43 for floweaver
    Rick Lupton
    @ricklupton
    Hi @big-cake that's great, thanks for saying hello! Let me know if you have any questions.
    Ali Alsabbah
    @ali-alsabbah
    @ricklupton I successfully created a conda package for ipsankeywidget. I tried following the same process for floweaver, but I got a key error when I tried to build the package from pypi. I also didn't have enough information to fill out the meta file for conda-build, but I can send you the meta file and you can complete it yourself with the missing info.
    For ipsankeywidget, I created a package for Python 2.7, 3.5, and 3.6 for all platforms and uploaded it to anaconda.org. At the moment, you should be able to install it by typing in conda install -c big_cake ipsankeywidget
    I'd like to transfer ownership of the packages to you as my conda username isn't very professional. Let me know how to mark my contribution on GitHub as well. Thanks.
    Rick Lupton
    @ricklupton
    @big-cake Thanks, quick progress! I had a quick test and it seems like I can install it. Can you create a pull request on GitHub (i.e. fork the repository, add the new meta file, commit it to a new branch, open pull request on GitHub) -- there are some basic instructions and links to more information in the contributing guidelines, but feel free to ask if you're not sure how to do this.
    Ali Alsabbah
    @ali-alsabbah
    @ricklupton I'm just now getting around to looking at this
    Ali Alsabbah
    @ali-alsabbah

    you might've caught this error already, but it is "conda install -c big_cake ipysankeywidget"

    and not "conda install -c big_cake ipsankeywidget"

    Ali Alsabbah
    @ali-alsabbah

    In any case, I've submitted the appropriate pull requests, or so I believe.

    Give me your Anaconda.org username, Rick, and I should be able to add you as a collaborator on the conda package and then trasnfer ownership.

    Rick Lupton
    @ricklupton
    It's ricklupton. Thanks.
    Ali Alsabbah
    @ali-alsabbah
    @ricklupton I've been a little busy and will continue to be so for a short while, but I'll slowly try to work through your proposals
    Ezequiel Leonardo CastaƱo
    @ELC
    Hi Rick! I just wanted to tell you that I added more the information in the issues #56 , #55 and the #50 . I also created a new one #61 that I believe it is related with the #34
    Rick Lupton
    @ricklupton
    Thanks! I've replied there I think
    Ali Alsabbah
    @ali-alsabbah
    @ricklupton I've followed up on here ricklupton/ipysankeywidget#33
    Talgat2
    @Talgat2
    Hey, guys. I have left a message in Issue No.21 (ricklupton/floweaver#21) about self-loops, but have not gotten an answer yet. Thought that maybe here someone could help me. I could not find an example code for self-loops.
    Rick Lupton
    @ricklupton
    Hi both, I've replied on Github now.
    Ali Alsabbah
    @ali-alsabbah
    @ricklupton I believe mine should be ready
    Talgat2
    @Talgat2
    Guys, I still have not figured out how to implement a self-loop. Any help would be very appreciated. My code is here: ricklupton/floweaver#21 .
    Rick Lupton
    @ricklupton
    @Talgat2 I think there's a bug in d3-sankey-diagram about rendering self-links -- they were they but you couldn't see them. I've given you an example in #21. Thanks for the detailed example of what you're using it for!
    Mohamed Hachaichi
    @El-Nour
    can we use floweaver with Python 3.8.5 ? because I have bugs about "node" !!
    Mohamed Hachaichi
    @El-Nour
    i got this error: 'LayeredGraph' object has no attribute 'node'
    repolly
    @repolly
    +1