Skip to content
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

Document oinspect format of object info #8774

Open
techtonik opened this issue Aug 26, 2015 · 5 comments
Open

Document oinspect format of object info #8774

techtonik opened this issue Aug 26, 2015 · 5 comments

Comments

@techtonik
Copy link
Contributor

oinspect has a chance to become a de-facto standard for exporing information about an object inside of Python process - https://github.com/spyder-ide/docrepr

It will help to build up the tools that use it if oinspect format is sufficiently documented to avoid surprises and future breakage. Right now it is not clear what is the format of data that oinspect works with https://ipython.readthedocs.org/en/stable/api/generated/IPython.core.oinspect.html

@minrk minrk added this to the wishlist milestone Oct 9, 2015
@minrk
Copy link
Member

minrk commented Oct 9, 2015

oinspect hasn't been formalized, so it is considered free to change across versions (and has done), since its only application so far is computing representations of inspection, rather than preserving the inspection info itself. Coming up with some more formalism, and cleaning up the API would be a good project, though.

@minrk minrk modified the milestones: 4.2, wishlist Oct 9, 2015
@techtonik
Copy link
Contributor Author

Are there any good practices for backward compatible and extensible data formats in IPython?

I'd like to have a format that will reflect the current structure of Python state at a given moment, but the one that could be inspected by future tools as well. The purpose if to build a player like https://github.com/pgbovine/OnlinePythonTutor/ which will be able to catch state of additional system components using human readable format compatible across different tools.

@ccordoba12
Copy link
Member

@minrk, what about creating an external library based on oinspect that IPython would depend on?

@minrk
Copy link
Member

minrk commented Dec 29, 2015

I think that's a reasonable project, if there are sufficient uses outside IPython.

@techtonik
Copy link
Contributor Author

As long as it is inside IPython, it is accessible only to IPython hackers, so it is a catch22 problem. But I personally think that any debugger would use that, not only Spyder. It would be also nice to be able to extract some of oinfo structure from bdb frames in JSON so that it could be immediately usable for https://github.com/pgbovine/OnlinePythonTutor/

@minrk minrk modified the milestones: 4.2, 5.0 Apr 8, 2016
@Carreau Carreau modified the milestones: 6.0, 5.0 May 25, 2016
@Carreau Carreau modified the milestones: 6.0, 7.0 Feb 9, 2017
@Carreau Carreau removed this from the 7.0 milestone Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants