Code Monkey home page Code Monkey logo

evertbase's Introduction

Evert

Travis CI Build Code Health

Table of contents:

Overview

This is the base code for the Evert project. The aim of the project is to make a pluggable web interface for the analysis of time series data. The application is written primarily in Python using the Flask web-framework.

Current features:

  • File uploads
  • Plotting
  • Dataviewer

Installation

Clone the master branch of the repository to get the latest stable version of the application, then navigate to the folder in the command line.

Create a virtual environment for the app using the following command:

conda env create -f environment.yml

This environment is currently only supporting Python 3.5.

Activate the environment using one of the following commands in the command line:

  • Windows: activate Evert
  • Linux/OSX: source activate Evert

After activating the environment the following packages need to be installed using pip install:

  • flask_bootstrap
  • flask_plugins
  • flask_sqlalchemy
  • flask_socketio
  • flask_wtf
  • dirsync
  • eventlet
  • kombu

Evert uses RabbitMQ for message queues communication. Install RabbitMQ from https://www.rabbitmq.com/

Start Up

After all the environment has been created and all the packages installed the application can now run.

The application can be started in an IDE or in the command line using the following command:

python manage.py

After the above command has been entered and run paste the following in your web browser:

http://127.0.0.1:5000

This should open Evert in your web browser. If an error is displayed keep on refreshing the page.

evertbase's People

Contributors

alchemyst avatar neillherbst avatar shahun-107 avatar tiaanpeens avatar

Watchers

 avatar  avatar  avatar  avatar

evertbase's Issues

Changes in Environment.yml

This is the necessary modules that will need to change in order to upgrade to python 3.7. Some of the packages have not been updated in the past few years.

Python Module Current Version Most Recent Version
conda installs
coveralls 1.6.0
coverage 4.3.4 4.5.3
cycler 0.10.0 0.10.0
Flask 0.12 1.0.2
Flask-migrate 2.0.3 2.4.0
Flask-script 2.0.5 2.0.5
Flask-socketio 2.8.5 3.3.2
Flask-SQLAlchemy 2.2.0 2.3.1
Flask-testing 0.6.1 0.7.1
Flask-uploads 0.2.1
Flask-wtf 0.14.2
jinja2 2.9.5 2.10.0
kombu 4.0.2 4.4.0
matplotlib 2.0.0 3.0.3
mock 2.0.0 2.0.0
pandas 0.19.2 0.24.2
pip 9.0.1 19.0.3
pytest 2.8.5 4.3.1
pytest-cov 2.4.0 2.6.1
pytest-mock 1.5.0 1.10.1
scikit-learn 0.19.0 0.20.3
scipy 0.19.0 1.2.1
setuptools 27.2.0 40.8.0
sqlalchemy 1.1.6 1.3.0
pip installs
amqp 2.1.3 2.4.2
dirsync 2.2.2 2.2.3
eventlet 0.17.4 0.24.1
flask-bootstrap 3.3.5.7 3.3.7.0
Flask-plugins 1.6.1 1.6.1
pytest-flask 0.10.0 0.14.0
service-identity 16.0.0 18.1.6
WTForms 2.1.0 2.2.1
WTForms-components 0.10.0 0.10.3

Plotly Plot not working

After running

python manage.py runserver

and uploading some data, the dataviewer works (on both Google Chrome and Firefox).
When accessing the plotly plot, the following error is returned (in git bash, using both Chrome and Firefox)

127.0.0.1 - - [23/Feb/2017 12:40:56] "GET /_plotdata?plotdata=app%2Fstatic%2Fupl                                                                                                                                                                                               oads%5CCV_50_100.csv&xaxis=Timestamp&yaxis=Level HTTP/1.1" 500 -
Traceback (most recent call last):
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1994, in __call__
    return self.wsgi_app(environ, start_response)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1540, in handle_excep                                                                                                                                                                                               tion
    reraise(exc_type, exc_value, tb)
  File "C:\Anaconda3\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1614, in full_dispatc                                                                                                                                                                                               h_request
    rv = self.handle_user_exception(e)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1517, in handle_user_                                                                                                                                                                                               exception
    reraise(exc_type, exc_value, tb)
  File "C:\Anaconda3\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1612, in full_dispatc                                                                                                                                                                                               h_request
    rv = self.dispatch_request()
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1598, in dispatch_req                                                                                                                                                                                               uest
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Users\Shaun\Documents\Varsity\CSC411\Evert\evertbase\app\main\views.p                                                                                                                                                                                               y", line 59, in _plotdata
    ax.scatter(data[keys[0]].values, data[keys[1]].values)
  File "C:\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 1811, in in                                                                                                                                                                                               ner
    return func(ax, *args, **kwargs)
  File "C:\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 3865, in                                                                                                                                                                                                scatter
    x, y, s, c = cbook.delete_masked_points(x, y, s, c)
  File "C:\Anaconda3\lib\site-packages\matplotlib\cbook.py", line 1837, in delet                                                                                                                                                                                               e_masked_points
    raise ValueError("First argument must be a sequence")
ValueError: First argument must be a sequence
127.0.0.1 - - [23/Feb/2017 12:40:58] "GET /_plotdata?plotdata=app%2Fstatic%2Fupl                                                                                                                                                                                               oads%5CCV_50_100.csv&xaxis=Timestamp&yaxis=Level HTTP/1.1" 500 -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.