Giter VIP home page Giter VIP logo

expectexception's Introduction

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.

expectexception's People

Contributors

rschroll avatar znicholls avatar

Stargazers

Trevor James Smith avatar Jeff Hammerbacher avatar Sadie L. Bartholomew avatar 이성원 (Seongwon Lee) avatar Spencer Bliven avatar Bradley Grant avatar Andrei Chenchik avatar  avatar Joris Roovers avatar Ruben Diaz avatar Michael Li avatar Saul Shanabrook avatar Hélio Meira Lins avatar

Watchers

 avatar James Cloos avatar Michael Li avatar Chris Lerus avatar Megan Nissel avatar

expectexception's Issues

Support load_ext

Python has an extension loading mechanism:

%load_ext expectexception

Supporting this would simply require a function like the following (from the docs linked above):

def load_ipython_extension(ipython):
    """
    Any module file that define a function named `load_ipython_extension`
    can be loaded via `%load_ext module.path` or be configured to be
    autoloaded by IPython at startup time.
    """
    # You can register the class itself without instantiating it.  IPython will
    # call the default constructor on it.
    ipython.register_magics(MyMagics)

and then this would be run in the __init__.py file for backward compatibility.

Make pip installable without url

I really like using expectexception. I was wondering if it would be possible to make it pip installable without a url because pypi sometimes complains about trying to install direct dependencies from a url (full discussion in pypa/pip#4187, tl;dr PyPI won't install packages that have urls in their requirements) .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.