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

# Scratchpad

> Use these blocks to experiment and write throw away code.

Scratchpad blocks aren't used when executing a pipeline.

<Frame>
  <img alt="Blocks" src="https://github.com/mage-ai/assets/blob/main/blocks/scratchpad.gif?raw=true" />
</Frame>

## Getting data from other blocks

If you want to read the output data from another block, use the following sample code:

```python theme={null}
from mage_ai.data_preparation.variable_manager import get_variable


df = get_variable('pipelined_uuid', 'block_uuid', 'output_0')
```

* Change the value of `pipelined_uuid` to match your current pipeline UUID.
* Change the value of `block_uuid` to match the UUID of the block you want to read data from.
