New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable hook for pinfo (?) akin to _ipython_display_ #13217
Comments
Triage notes: @Carreau is building papyri-lab (see also papyri) that may add similar functionality. Modifying the Can you please take a look at the links above? If your idea is different and you would like to keep the proposal open, please also open an issue against ipykernel and link it here. |
Opened ipython/ipykernel#1005 |
See my further comments there for a way to monkey patch this in while I wait for it to be integrated into the system As an example: Screen.Recording.2022-10-15.at.3.14.24.AM.mov |
Closing as this cannot be solved by JupyterLab - this is an IPython enhancement request. FYI recent versions of IPython introduced as MIME hook for customising the pinfo output, for reference see |
Problem
I often want ? to provide me with much richer information that it does. I'd like the ability to hook nice widgets/interactive information modules info the
?
interface. For now, I can display them with_ipython_display_
but I'd like if there were a similar hook I could use to do things likeor
Proposed Solution
Add a magic method like
__pinfo_display__
that can be used to generate informative displays through thepinfo
methodAdditional context
Here's an example of what I imagine this looking like (the app is just a random sample app; the real deal would be much more help oriented)
I can make that app no issue and make it nicely interactive but I can't figure out how to hook it into the help system
The text was updated successfully, but these errors were encountered: