# Examples

## This example illustrates:

* How to setup a Disdat project to use TensorFlow (require tensorflow in your setup.py)
* How to assemble Disdat tasks into a pipeline
* How task outputs become bundles
* How to include extra data in your Docker container

## Setup

Like the Tutorial, let's clone our examples repo:&#x20;

1. Clone our examples github repo (<https://github.com/seanr15/disdat-examples>) [here.](https://github.com/seanr15/disdat-examples)
2. We'll assume you've installed it in `$CODE`
3. `cd` into the `$CODE`.&#x20;

Note that it has its own setup.py, defining the requirements for our example pipelines (in the `pipelines` package).  Let's install those requirements into your virtual environment.

```
$ cd $CODE
$ pip install -e .
```

We assume you have made an `examples` context and have switched into it. If not:&#x20;

```
$ dsdt context examples
$ dsdt switch examples
```

## Optional

If you want to push/pull your MNIST data to/from S3, then we assume you have bound the local context  `examples` to your remote ([described here](/disdat-documentation/examples/short-test-drive/push-pull-using-s3.md)).   So if you list your contexts, you should see that you are in `examples` and its bound to a directory `s3://disdat-prod/` on AWS.&#x20;

```
$dsdt context
*	examples	[examples@s3://disdat-prod/context]
```

## Now on to [TF and MNIST](/disdat-documentation/examples/untitled-1/mnist-and-tensorflow.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://disdat.gitbook.io/disdat-documentation/examples/untitled-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
