# magic

```%magic
Print information about the magic function system.
```

Think of `%magic` as the user’s guide to magic commands. It steps through all of the commands listed in `%lsmagic` with extensive examples and all available parameters.

It supports three optional display parameters: `-latex`, `-brief`, and `-rest`. Here’s an example of the results for the first entry, `aimport`:

``````%magic
``````
```%aimport:

%aimport
List modules to automatically import and not to import.

%aimport foo
Import module 'foo' and mark it to be autoreloaded for %autoreload 1

%aimport foo, bar
Import modules 'foo', 'bar' and mark them to be autoreloaded for %autoreload 1

%aimport -foo
```
``````%magic -latex
``````
```\bigskip
\texttt{\textbf{ \%aimport}}:

\texttt{\%aimport}
List modules to automatically import and not to import.

\texttt{\%aimport} foo
Import module 'foo' and mark it to be autoreloaded for \texttt{\%autoreload} 1

\texttt{\%aimport} foo, bar
Import modules 'foo', 'bar' and mark them to be autoreloaded for \texttt{\%autoreload} 1

\texttt{\%aimport} -foo
```
``````%magic -brief
``````
```%aimport:
```
``````magic -rest
``````
```**%aimport**::