:orphan:
API Example
==================
The example below illustrates how to use BugDoc to debug arbitrary computational pipelines. To do that, we need to write two scripts that run in separate parallel processes and communicate with each other through TCP messages.
The *Debugger* script defines the pipeline parameter space, provides an entry point for the pipeline, and calls BugDoc's API.
The second script, *Worker*, is responsible for receiving messages from BugDoc's algorithms and calling the pipeline execution engine to run a pipeline instance and evaluate its output.
.. raw:: html
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/images/thumb/sphx_glr_api_interface_thumb.png
:alt:
:doc:`/auto_examples/api_interface`
.. raw:: html
Worker script
.. raw:: html
.. only:: html
.. image:: /auto_examples/images/thumb/sphx_glr_debugger_thumb.png
:alt:
:doc:`/auto_examples/debugger`
.. raw:: html
Debugger script
.. raw:: html
.. only:: html
.. image:: /auto_examples/images/thumb/sphx_glr_standalone_example_thumb.png
:alt:
:doc:`/auto_examples/standalone_example`
.. raw:: html
Standalone Debugger Example
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/api_interface
/auto_examples/debugger
/auto_examples/standalone_example
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: auto_examples_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery `_