Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Rick Lupton
    @ricklupton
    Yes
    Neil Pilgrim
    @neiljp
    ah right, git grep is my friend :)
    Neil Pilgrim
    @neiljp
    tests passed after manually installing pytest & matplotlib.
    Neil Pilgrim
    @neiljp
    A sample raise doesn't appear to work for detecting the version; would working in networkx be feasible/desirable?
    Rick Lupton
    @ricklupton
    Sorry, not sure what you mean?
    Rick Lupton
    @ricklupton
    I'm off now, I'll be back in the morning at the sprint :wave:
    Rick Lupton
    @ricklupton
    Thanks for getting involved and hope you enjoy the rest of your day!
    Neil Pilgrim
    @neiljp
    Re networkx, I missed 2 be feasible/explored?
    Also looking at Excel
    Rick Lupton
    @ricklupton
    Ah as in upgrading to be compatible with version 2? Yes, definitely.
    Welcome back!
    Neil Pilgrim
    @neiljp
    Just heading out to it soon
    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.