---
title: script
description: Plain Python scripts from IPython's %run, safe_execfile and argument
  helpers.
---
## arg\_split

```python
def arg_split(
    line
):
```

*Split magic arguments, retaining quotes and any unfinished final token.*

## script\_argv

```python
def script_argv(
    line
):
```

## run\_script

```python
def run_script(
    shell, tokens, interactive
):
```
