Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    mkoleva
    @mkoleva
    hello!
    Florian Rathgeber
    @kynan
    hello!
    mkoleva
    @mkoleva
    @Eleonore9 yo
    Camilla Montonen
    @Winterflower
    hello
    @Eleonore9 hello
    mkoleva
    @mkoleva
    everyone is here
    Éléonore
    @Eleonore9
    Hey!
    I've tried to do a simple plot of disaster data from 2014: http://cdb.io/1GsQOeo
    mkoleva
    @mkoleva
    cool map
    where did you get the data from
    Éléonore
    @Eleonore9
    It's from the International Disaster database: http://www.emdat.be/
    You can search their database and export data as a csv
    mkoleva
    @mkoleva
    that's cool, we can use some basic data
    Camilla Montonen
    @Winterflower
    Éléonore
    @Eleonore9
    Éléonore
    @Eleonore9
    I think the way to go is request @Winterflower : http://flask.pocoo.org/docs/0.10/quickstart/#the-request-object
    Camilla Montonen
    @Winterflower
    we've pushed a sample flask application folder to the repo
    it's in the flask folder
    there is a mainpage.py file in there
    Emily_RRZ
    @emilyzheng828
    1.A <form> tag is marked with enctype=multipart/form-data and an <input type=file> is placed in that form.
    2.The application accesses the file from the files dictionary on the request object.
    3.use the save() method of the file to save the file permanently somewhere on the filesystem.
    Camilla Montonen
    @Winterflower
    I think the output_file writes it to the filesystem
    Florian Rathgeber
    @kynan
    Yep, we were planning to use autoload_server instead, which just takes a plot object as input
    Camilla Montonen
    @Winterflower
    just the object created using figure()?
    mkoleva
    @mkoleva
    yes
    Camilla Montonen
    @Winterflower
    ok
    mkoleva
    @mkoleva
    or plot() or anything
    Camilla Montonen
    @Winterflower
    I'll make the changes
    pushed
    should return a plot_object p now
    mkoleva
    @mkoleva
    I can try plugging that in
    mkoleva
    @mkoleva
    I will do that in visualization.py
    Camilla Montonen
    @Winterflower
    cool!
    Florian Rathgeber
    @kynan
    here's a Flask extension for file uploads: https://pythonhosted.org/Flask-Uploads/
    Emily_RRZ
    @emilyzheng828
    mkoleva
    @mkoleva
    but we can't just use the cardodb one
    Emily_RRZ
    @emilyzheng828
    mkoleva
    @mkoleva
    0,14.628641,121.149586,True,1
    1,14.705106,120.961609,False,2
    2,14.271892,121.392236,True,3
    3,14.353063,120.809961,True,4
    4,14.734567,120.888239,False,5
    5,14.745192,120.529810,True,6
    6,14.706674,120.531183,False,7
    7,14.587095,120.564142,True,8
    8,14.928287,121.091985,False,9
    9,14.352963,120.910710,True,10
    mkoleva
    @mkoleva
    0,0.0815922240032,0.480369855314,True,1
    1,0.286606918257,0.53164044075,False,1
    2,0.929351592787,0.490203217831,True,2
    3,0.750231270286,0.00529578771669,False,2
    4,0.147374065007,0.0979138060482,True,2
    5,0.469229908703,0.787026417443,False,2
    6,0.779071757676,0.926158960934,True,4
    7,0.606604073507,0.250980490263,False,4
    8,0.821991823751,0.549644976249,True,4
    9,0.259131842229,0.636988267942,False,4
    Florian Rathgeber
    @kynan
    FYI I pushed some more small fixes