-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make it easier to support new data types in the variable explorer #7092
Comments
One idea, from @hgijeon, is to specify how a new data type can be converted to a data type that Spyder already knows about. In the example, a variable of type torch.Tensor can be converted to a numpy array by applying '.numpy()' . A related issue is #6338 (Can 'Supported Data Types' be customized?); currently, as a fallback when displaying an unsupported data type we convert it to a string and display that. A related comment from @CAM-Gerlach:
The last suggestion is similar to #558 (Add Object Explorer for exploring an object's properties). |
I guess to clarify, the last suggestion is probably a separate (and much easier), though somewhat related issue, and is really more about having an additional option to to manually trigger opening an object in the generic object explorer that we already have (vs. only its autodetected data type and type-specific high level editor), as opposed to creating a newer, fancier hierarchical version with classes and inheritance as #558 . |
This comes from the discussion at #7042 but has popped up various times in the past. It should be easier to support new data types in the variable explorer. Ideally, a user should be able to do this without knowing much about the Spyder internals.
We probably first need to discuss how to achieve this.
The text was updated successfully, but these errors were encountered: