modelx.restore_ipython#
- restore_ipython()[source]#
Restore IPython’s default error display.
Reverts IPython’s exception handling to its default behavior, removing modelx-specific traceback customizations applied by
setup_ipython().This is useful when:
You want standard Python tracebacks instead of modelx-enhanced ones
Debugging modelx itself rather than models
Working with other libraries that have their own traceback customizations
Example
>>> import modelx as mx >>> mx.restore_ipython() # Now errors show standard IPython tracebacks
See also
setup_ipython(): Set up modelx error display in IPython