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

Feature: display variable info #196

Open
Beforerr opened this issue Feb 5, 2025 · 1 comment · May be fixed by #189
Open

Feature: display variable info #196

Beforerr opened this issue Feb 5, 2025 · 1 comment · May be fixed by #189

Comments

@Beforerr
Copy link
Contributor

Beforerr commented Feb 5, 2025

I found it is useful to display info of avariable, and here is what I did in Julia. Maybe we could have something like this in python as well.

Image

Related codes : https://github.com/SciQLop/Speasy.jl/blob/6f42b0424e4ec71de7381c0987d0ed1ac7b503b7/src/types.jl#L57C1-L72C4

@jeandet
Copy link
Member

jeandet commented Feb 6, 2025

@Beforerr yes indeed, there a quite old issue #8 about pretty repr, I've done something for IPython here:
https://github.com/SciQLop/speasy/pull/189/files#diff-85f04bb7467121cc0c8346b1abcfc51def0e90587138125e1e50f9953f6690f4R905

This should be in 1.5.0 that I hope to release next week.

It produces something like this:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants