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

pytest


pytest is a unit testing framework that attempts to be more "Pythonic." An important goal of it was to minimize the amount of additional code that had to be written in unittest in order to make tests run. pytest has often been described as "no-boilerplate" testing due to its minimal setup requirements. The home page for the project can be found at https://pytest.org/latest/index.html.

Installation

pytest can be installed using pip:

pip install pytest

One can test the installation as follows:

(my_rpy2_zone)-bash-4.1$ py.test --version
This is pytest version 2.8.7, imported from …

It is easy to invoke from the command line:

(my_rpy2_zone)-bash-4.1$ py.test
================================================= test session starts ==================================================
platform linux -- Python 3.4.4, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
rootdir: …/chap08, inifile: 
collected 0 items 

============================================= no tests ran in 0.03 seconds ==================...