# Submitting

## Submit with Notebook

Submitting a notebook solution is very simple.&#x20;

Download your notebook under the .ipynb format and upload it under the [submit section](https://adialab.crunchdao.com/submit?tab=notebook) of the CrunchDAO platform.

#### Specifying package versions

Since submitting a Notebook does not includes a `requirements.txt`, users can instead specify a package's version using [requirement specifiers](https://pip.pypa.io/en/stable/reference/requirement-specifiers/#examples) at the import level in a comment on the same line.

```python
# valid statement
import pandas # == 1.3
import sklearn # >= 1.2, < 2.0
import tqdm # [foo, bar]
import scikit # ~= 1.4.2
from requests import Session # == 1.5
```

Specifying multiple times will cause the submission to be rejected if they are different.

```python
# inconsistant versions will be rejected
import pandas # == 1.3
import pandas # == 1.5
```

Specifying versions on standard libraries will do nothing (but they will still be rejected if there is an inconsistent version).

```python
# will be ignored
import os # == 1.3
import sys # == 1.5
```

## Submit with Crunch CLI

```
Usage: crunch push [OPTIONS]

  Send the new submission of your code.

Options:
  -m, --message TEXT      Specify the change of your code. (like a commit
                          message)

  -e, --main-file TEXT    Entrypoint of your code.  [default: main.py]
  --model-directory TEXT  Directory where your model is stored.  [default:
                          resources]

  --help                  Show this message and exit.
```

## Check your submission

If the submission is complete you will see it appears under your [submission section](https://adialab.crunchdao.com/project).

<figure><img src="/files/RG9ohnFfyd8sQi0aHqRB" alt=""><figcaption><p>Some interesting submissions ;)</p></figcaption></figure>

The backend is parsing your submission to retrieve the code of the interface's functions (ie: `train`, and `infer`) and the dependencies of your code. By clicking on the right-side arrow you will access your submission content.

<figure><img src="/files/XuYK0cB9oEvmGG5F4HQc" alt=""><figcaption><p>The view of a submission once properly uploaded</p></figcaption></figure>

{% hint style="info" %}
Make sure that the system properly parsed your code and imports
{% endhint %}


---

# 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://docs.adialab.crunchdao.com/participate/submitting.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.
