ipython/ipython — Issue #1209: can't make %result work as in doc.
Author: Carreau
Created: 2011-12-25 12:13:15+00:00
State: open

Hi,
Still playing with parallel magic. I'm can't get `%result` working as in the doc, I always get:

```Python
In [5]:%result
Out[5]:
```

I am certainly dooing something wrong, but I don't see what:

```
ipcluster start --n=2
```

```Python
In [1]: from IPython.parallel import Client
...: rc = Client()
...: dv=rc[:]
...: dv.activate()
...: dv.block=True
```

```Python
In [4]: dv.apply_async(lambda : 1)
Out[4]: >
```

```Python
In [5]: %result
Out[5]:

# but ...
In [6]: dv.apply_async(lambda : 1)
Out[6]: >

In [7]: r =%result

In [8]: r.get()
Out[8]: 1
```

Still according to http://ipython.org/ipython-doc/stable/parallel/parallel_multiengine.html

```Python
In [29]: dv.apply_async(lambda : ev)
# no output in the doc, normal ?
In [30]: %result
Out[30]: [ [ 1.28167017 0.14197338],
....: [-0.14093616 1.27877273],
....: [-0.37023573 1.06779409],
....: [ 0.83664764 -0.25602658]
```
So i'm expecting :

```Python
In [4]: dv.apply_async(lambda : 1)
Out[4]: >
In [5]: %result
Out[5]: 1
```
Which is not what I observe...
What am I missing ?