Customizable hook for pinfo (?) akin to _ipython_display_
- Langage dominant
- Python
- Étoiles
- 734
- Forks
- 412
- Merge moyen
- 1 j 5 h
- PR mergées (30 j)
- 8
Description
[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
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.