Customizable hook for pinfo (?) akin to _ipython_display_
- Lenguaje dominante
- Python
- Estrellas
- 734
- Forks
- 412
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 8
Descripción
[Related to https://github.com/jupyterlab/jupyterlab/issues/13217]
This is mostly applicable to working in a notebook or lab environment, but I would like to be able to customize what happens when I call `?` on the classes and objects in the libraries I write. This kind of hook already exists for displaying objects through `_ipython_display_` and now I would just like it to also work for calling like `?MyNiceClass`
In principle, this should be easy as `?` just calls into the `pinfo` magic which could check for the existence of some hook like `_ipython_pinfo_` or something similar, although two variants might be required, one for instances and one for classes
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.