diff --git a/jaxtyping/_ipython_extension.py b/jaxtyping/_ipython_extension.py index 50fec53..2452e50 100644 --- a/jaxtyping/_ipython_extension.py +++ b/jaxtyping/_ipython_extension.py @@ -21,7 +21,9 @@ try: _JaxtypingTransformer(typechecker=typechecker) ) -except ImportError: +except Exception: + # Very broad exception-handling, as e.g. IPython will sometimes be + # present but fail to import for mysterious reasons. pass