# Add Custom Code

# Adding Custom Code

Add custom Python code to enhance your pipelines.

***

## About This Task

You can add custom Python code to your pipelines in two ways:

- [With a `Code` component in Builder](./create-code-component.mdx) (recommended): Write your component code directly in Builder and test it right away. You can use it in a single pipeline or save it as a custom component to share with your workspace or organization.
- [With a GitHub template](./add-custom-component.mdx): Write your component in your IDE using a GitHub template and upload it to <ProductShortName />. Best if you need external pip dependencies, full version control, or CI/CD testing.
