Providing default representations of common objects in Python land
Works in IPython when the object is the value returned by the last statement of
a cell, or when calling
display() on it.
$ pip install disp $ ipython -c 'import disp; disp.install()' 💖 Installation succeeded: enjoy disp ! 💖
$ ipython -c 'import disp; disp.uninstall()'
The following objects will gain superpowers automatically:
The followings objects need to be explicitly register with
disp.activate_builtins() and will work only on Python 3.6 and later:
- functions methods (and alike)
The following objects need to be explicitly activated individually for each
- requests.models.Response (Python 3.6+ only)
A couple of other objects are secretly available on Python 3.6, but are still unstable so-far (dig through the source).
See our example notebook
Do you support more objects?
Do you want to submit a Pull Request? We'll probably accept it.
Bump version number in
$ python setup.py sdist bdist_wheel $ twine upload dist/*