Customizable hook for pinfo (?) akin to _ipython_display_
- Lingua principale
- Python
- Stelle
- 734
- Fork
- 412
- Merge medio
- 1g 5h
- PR unite (30g)
- 8
Descrizione
[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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.