thedataincubator / expectexception

Jupyter magic for cells expected to raise exceptions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expect Exception

Expect Exception allows you to annotate cells in your Jupyter notebook that you expect to raise exceptions. Tracebacks from these exceptions get printed normally, but execution of the notebook does not halt with that cell. This allows you to run all the cells in the notebook at once, and it makes testing notebooks with exception-raising cells possible.

Installation

Expect Exception can be installed with pip:

pip install expectexception

Usage

See the README.ipynb notebook for usage examples.

License

Expect Exception is copyright 2016 The Data Incubator, released under the BSD 3-Clause license. See the LICENSE file for details. The source is available at https://github.com/thedataincubator/expectexception.

About

Jupyter magic for cells expected to raise exceptions

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%