Coder Social home page Coder Social logo

benvanwerkhoven / noodles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nlesc/noodles

0.0 2.0 0.0 4.55 MB

Computational workflow engine, making distributed computing in Python easy!

Home Page: http://nlesc.github.io/noodles

License: Apache License 2.0

Shell 0.18% HTML 6.96% Python 64.16% Jupyter Notebook 28.53% CSS 0.17%

noodles's Introduction

Travis

Codacy Badge Coverage Badge

Noodles - workflow engine

Requires Python 3.5. See http://nlesc.github.io/noodles/ for more information.

Installation

Install the following in a virtualenv:

pip install .

To enable Xenon for remote execution, Java must be installed, and Xenon can be installed with

pip install '.[xenon]'

If Java cannot be found (needed by Xenon), run

export JAVA_HOME="/usr/lib/jvm/default-java"  # or similar...

in your shell initialization script (like ~/.bashrc).

To enable the TinyDB based job database, run

pip install '.[prov]'

This is needed if you want to interrupt a running workflow and resume where you left of, or to reuse results over multiple runs.

To run unit tests, run

pip install '.[test]'
nosetests test

Some tests depend on the optional modules being installed. Those are skipped if if imports fail. If you want to test everything, make sure you have NumPy installed as well.

The prototype

The prototype is very simple. It should support the definition of function objects that are manageable in the workflow engine and give output of the workflow as a graph. The only dependency of this prototype should be the graph plotting library: pygraphviz. To keep the interface clean, we avoid the use of Fireworks specific functionality at this point. The abstract concepts in this context are: workflow, node, link.

Developers interface

Questions:

  • What does a developer adding functionality to the workflow engine need to know?
  • How do we specify the surrounding context of functions in terms of types and monadic context?

User interface

The user should have it easy. From the spirit of wishful programming, we may give here some examples of how the user would use the workflow engine.

Prototype example

The developer has prepared some nice functions for the user:

@schedule
def f(a, b):
    return a+b

@schedule
def g(a, b):
    return a-b

@schedule
def h(a, b):
    return a*b

The user then uses these in a workflow:

u = f(5, 4)
v = g(u, 3)
w = g(u, 2)
x = h(v, w)

draw_graph("graph-example1.svg", x)

Resulting in the graph:

examples/callgraph.png?raw=true

noodles's People

Contributors

arnikz avatar benvanwerkhoven avatar blootsvoets avatar bpmweel avatar felipez avatar hannospreeuw avatar jhidding avatar ridderl avatar vincentvanhees avatar

Watchers

 avatar  avatar

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.