Book Image

Mastering IPython 4.0

By : Thomas Bitterman, Dipanjan Deb
Book Image

Mastering IPython 4.0

By: Thomas Bitterman, Dipanjan Deb

Overview of this book

IPython is an interactive computational environment in which you can combine code execution, rich text, mathematics, plots, and rich media. This book will get IPython developers up to date with the latest advancements in IPython and dive deep into interactive computing with IPython. This an advanced guide on interactive and parallel computing with IPython will explore advanced visualizations and high-performance computing with IPython in detail. You will quickly brush up your knowledge of IPython kernels and wrapper kernels, then we'?ll move to advanced concepts such as testing, Sphinx, JS events, interactive work, and the ZMQ cluster. The book will cover topics such as IPython Console Lexer, advanced configuration, and third-party tools. By the end of this book, you will be able to use IPython for interactive and parallel computing in a high-performance computing environment.
Table of Contents (18 chapters)
Mastering IPython 4.0
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
6
Works Well with Others – IPython and Third-Party Tools
Index

The Client class


Although the primary purpose of the Client class is to provide a means to obtain access to one or more View objects, it also has some utility attributes and methods.

Attributes

The following attributes are noteworthy:

Attribute

Meaning

results

A dict of results, keyed by msg_id

outstanding

A set of msg_ids that have been submitted but for which no results have been received

For example:

In [112]: c.results
Out[112]:
defaultdict(dict,
            {'0543fa4b-43d6-4280-9424-45c574b75e90': [19, 6],
             '0cde1111-35a9-4fe7-90af-920d4a83a9c9': [16, 3],
             '15c29a7c-b7b9-4738-9d3c-6350dc8953bc': [7],
             '187e9830-8962-438f-a2a6-c0986330c7ff': [7],
             '1a8044e3-08a0-4e97-b609-bef89bc452bd': [0, 1, 7],
             '2267f2e1-3dd9-4514-804c-6c8cb9c97521': ipyparallel.error.RemoteError('TypeError', "'int' object is not subscriptable"),
             'e9aac8f6-8625-467e-aa28-a04f20c13274': ipyparallel.error.RemoteError('TypeError', "'int' object...