> ## Documentation Index
> Fetch the complete documentation index at: https://notte-experiment-visibility-md-links.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# download

> Download the function code from the notte console as a python file

```python theme={null}
function = notte.Function("<your-function-id>")
function.download(path="<path-to-your-function.py>", decryption_key="<your-key>")
```

## Parameters

<ParamField path="workflow_path" type="UnionType[str, None]" default="None" />

<ParamField path="version" type="UnionType[str, None]" default="None" />

<ParamField path="decryption_key" type="UnionType[str, None]" default="None" />

<ParamField path="path" type="UnionType[str, None]" default="None" />

## Returns

`str`
