# Transform.cancel

### Transform.<mark style="color:purple;">cancel</mark>() → self

Cancel a running transform. If the transform isn't running, an exception will be raised.

### Returns

**self (a** [**Transform**](https://docs.redivis.com/api/client-libraries/redivis-python/reference/transform)**)**

### Examples

```python
username = "imathews"
workflow_name = "example_workflow_climate_analysis:x7kh"
transform_name = "join_lat_lon:m9tz"

transform = redivis.transform(f"{username}.{workflow_name}.{transform_name}")
transform.run(wait_for_finish=False)
time.sleep(1)
transform.cancel() # this will stop the notebook after 1s
```
