> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/callable/callable.source_code.md).

# Callable.source\_code()

Returns the source code of the function/modifier.

`source_code() → str`

## Example

```python
from glider import *
def query():
  functions = Functions().exec(1,1)

  for function in functions:
    # Aggregate the code of each function along with their name
    print(f"function: {function.name}, code: {function.source_code()}")

  return functions
```

## Example output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fk3Ca96zeZCfhOKNnn8o1%2Fimage.png?alt=media&amp;token=4518e3a8-eafa-4acc-8c7e-b1af22e71a70" alt=""><figcaption></figcaption></figure>
