-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add options for varinfo() to show all and imported, sort by each column, search modules recursively #38042
Add options for varinfo() to show all and imported, sort by each column, search modules recursively #38042
Conversation
This was a great help to me 👍 |
531754d
to
d05721e
Compare
Not sure who's best to review. @JeffBezanson? (just on git last history, though it was just a reorg) |
It'd be a shame if this didn't make it into the 1.6 feature freeze (which I believe is imminent) I don't know who covers this kind of thing, so some wild tags.. @tkf @KristofferC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me.
|
That sounds good. Might as well allow |
I had the same feel and also thought about something like |
I feel like Also, it can be useful to sort by the summary, to collect object types together. |
I've added functionality to recursively include objects from sub-modules too
Which took
As a contrast, this the most
An extreme test is:
which works but the table formatting wraps around the terminal given the long package names and deps tree |
@vchuravy what do you think about the additional recursive mode? Could this go into https://github.com/JuliaLang/julia/milestones/1.6%20features ? |
bump |
@timholy what do you think? Provides a fair bit more introspection into module memory usage |
Expands the functionality of
varinfo()
with kwargs:all
: also list non-exported objects defined in the module, deprecated objects, and compiler-generated objects.imported
: also list objects explicitly imported from other modules.sortby
: the column to sort results by. Options are:name
(default),:size
, and:summary
.Edit:
recursive
: recursively include objects in sub-modules, observing the same settings in each.See Add options for varinfo() to show all and imported, sort by each column, search modules recursively #38042 (comment)
The first two arcs match the kwargs from
names