views.py
15 lines
| 195 B
| text/x-python
|
PythonLexer
MinRK
|
r3666 | from IPython.parallel import * | ||
MinRK
|
r3564 | |||
MinRK
|
r3609 | client = Client() | ||
MinRK
|
r3564 | |||
for id in client.ids: | ||||
MinRK
|
r3664 | client[id].push(dict(ids=id*id)) | ||
MinRK
|
r3564 | |||
MinRK
|
r3664 | v = client[0] | ||
v['a'] = 5 | ||||
MinRK
|
r3564 | |||
Thomas Kluyver
|
r6455 | print(v['a']) | ||
MinRK
|
r3564 | |||
remotes = client[:] | ||||
Thomas Kluyver
|
r6455 | print(remotes['ids']) | ||