ipython / ipython/ipykernel

Customizable hook for pinfo (?) akin to _ipython_display_

Abierto
#1,005 1 comentario 0 reacciones 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.