Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Rick Lupton
    @ricklupton
    I've added the missing developer docs about the tests now! https://github.com/ricklupton/floweaver/pull/44/files
    But I guess you've figured it out already :)
    Neil Pilgrim
    @neiljp
    For the most part :)
    Rick Lupton
    @ricklupton
    I'm heading home now, I'll check back a bit later
    Neil Pilgrim
    @neiljp
    Right, which timezo btw?
    *timezone
    Neil Pilgrim
    @neiljp
    @ricklupton #46
    Rick Lupton
    @ricklupton
    Thanks! Commented on the PR.
    I'm in Cambridge, UK, so almost finished for today
    Neil Pilgrim
    @neiljp
    Yeah, figured you might be by the timing :)
    the time/material files would go with the fruit ones?
    Rick Lupton
    @ricklupton
    Yep, that's right (corresponding id's to the material and time columns in the flows table)
    Neil Pilgrim
    @neiljp
    :thumbsup:
    Rick Lupton
    @ricklupton

    Hi MozSprint contributors!

    Thanks again for getting involved during the sprint and giving up your time to work on the project. If you have a few minutes more, it'd be really helpful to hear how you found that experience and understand what to do differently next time. If you don't mind giving some feedback, please fill out this quick form here:
    https://goo.gl/forms/XqmQ9eNNtNTEkrD93

    Thanks,
    Rick

    paantz
    @paantz
    Hi Rick, is there a way to add some kind of 'hatching' on the links with possible color mix ?
    Rick Lupton
    @ricklupton
    Although I'm not sure if you can do hatching in pure CSS -- this suggests you need to add additional elements to the SVG: https://stackoverflow.com/questions/13069446/simple-fill-pattern-in-svg-diagonal-hatching
    You can always export the Sankey diagram to SVG and edit it with something like Inkscape if you want to do fancy things @paantz
    Michael
    @yourselvs
    Hey Rick, I've gotten a lot of great results with floWeaver visualizing various flows. The GitHub page mentions embedding in web pages or interactive apps, but I didn't see anything elsewhere in the documentation. Is there any more info about embedding or interactivity somewhere?
    Rick Lupton
    @ricklupton
    Hi Michal, great to hear you've been finding it useful. There's not much documentation about that at the moment I'm afraid. The basic idea is to use the to_json method, to save the prepared data to a file, instead of the to_widget method used in the examples which shows it directly in a Jupyter notebook. Then load the data in a web page and render it using d3-sankey-diagram.
    It's on the roadmap to properly specify the JSON format -- I've not wanted to focus on docuemnting and giving examples of this until the format has stabilised. But if you want to give it a go I'm happy to answer questions and try to help.
    Rick Lupton
    @ricklupton
    A complicated example is here: http://www.ricklupton.name/ghg-map-2014/ -- but that's probably a bit hard to follow as it does the collapsing/expanding nodes.
    Michael
    @yourselvs
    Thanks for responding so quick Rick. I'm still using Jupyter at the moment and I was reading up a bit more on how ipywidgets work. I've gotten a lot of great results making it interactive. However, I seem to be unable to change any of the values of links. It seems like the widget only updates if I remove the links and add them to the end of the list. Do you know if there is a better way?
    Also, is there an event for hovering over a link or node, such as the example you showed?
    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