Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New api, to easily use VisTrails in other applications #24

Merged
merged 45 commits into from Mar 18, 2015
Merged

Conversation

remram44
Copy link
Member

This adds an easy-to-use API, that hides the internals and exposes wrappers.

  • VisTrails initialization
    • Don't load packages at startup
    • Fixes argv handling for IPython
    • Fixes logging
  • Loading pipelines and vistrails
  • Package and namespace wrapper
  • Execution
    • Sending custom input to pipeline
      • Setting constants as input
      • Sending "live" objects as input
    • Getting execution output
    • IPython integration (rich-text)
    • Set output mode configuration
  • "Output modes"
  • Pipeline modification, can be done in a future iteration

Current status: notebook

In addition to pkg.namespace['module'].
Conflicts:
	vistrails/core/debug.py
They give the names of the InputPort and OutputPort modules in the
pipeline.
Conflicts:
	vistrails/core/debug.py
Conflicts:
	vistrails/core/api.py
	vistrails/core/configuration.py
	vistrails/core/packagemanager.py
Conflicts:
	vistrails/core/packagemanager.py
@remram44 remram44 added this to the v2.2 milestone Oct 13, 2014
@remram44 remram44 removed this from the v2.2 milestone Nov 8, 2014
@remram44
Copy link
Member Author

IPython integration is there! Pipelines are rendered with Graphviz:

as well as version trees. Some PathObjects, like images, also show up as rich objects:

@tacaswell
Copy link
Contributor

Well, that is cool.

@tacaswell
Copy link
Contributor

attn @danielballan

@vistrails-dev
Copy link

Way cool!

On Tue, Feb 17, 2015 at 6:25 PM, Remi Rampin notifications@github.com
wrote:

IPython integration is there! Pipelines are rendered with Graphviz:

http://nbviewer.ipython.org/github/VisTrails/VisTrails/blob/53cba6b14637cdd87bf162b8e592d8b7c8c1e7d7/vtapitest.ipynb

as well as version trees. Some PathObjects, like images, also show up as
rich objects:

http://nbviewer.ipython.org/github/VisTrails/VisTrails/blob/53cba6b14637cdd87bf162b8e592d8b7c8c1e7d7/vtapitest.ipynb


Reply to this email directly or view it on GitHub
#24 (comment).


vistrails-dev mailing list
vistrails-dev@vistrails.org
http://lists.vistrails.org/mailman/listinfo/vistrails-dev

Juliana Freire, PhD
Professor, Computer Science & Engineering
Director of Graduate Studies, Center for Data Science (CDS)
Faculty Member, Center for Urban Science & Progress (CUSP)
New York University
juliana.freire@nyu.edu
(718) 260-4128

Admin: Ann Messinger, Program Operations Manager
phone: (718) 260-4057, email: am6179@nyu.edu

@remram44
Copy link
Member Author

After today's meeting: could add a way to define modules with a cell magic, and add them or replace them in the workflow.

%%pythonsource my_adder
#in: value1 basic:Integer
#in: value2 basic:Integer
#out: value basic:Integer
value = value1
value += value2
vistrail.replace_module('+', my_adder)

Conflicts:
	vistrails/core/api.py
	vistrails/core/configuration.py
	vistrails/core/modules/output_modules.py
	vistrails/packages/matplotlib/bases.py
@remram44
Copy link
Member Author

Something that I'm missing is overriding output modules configuration. What I had initially envisioned was:

import vistrails as vt
vistrail = vt.load_vistrail("terminator.vt")

with vt.output_mode('ImageOutput', 'file',
                    directory='/tmp/', prefix='apitest_image', format='png'):
    vistrail.execute()

remram44 added a commit that referenced this pull request Mar 18, 2015
New api, to easily use VisTrails in other applications
@remram44 remram44 merged commit 82e126a into master Mar 18, 2015
This was referenced Mar 23, 2015
@remram44 remram44 deleted the new-api branch March 26, 2015 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants