Skip to content

Loading…

whos command #37

Closed
ViralBShah opened this Issue · 8 comments

4 participants

@ViralBShah
The Julia Language member

We need a whos command, which shows all global variables.

@JeffBezanson
The Julia Language member

We might want to introduce a new standard method to assist with this, like summary(x). This would default to show(typeof(x)) but would give more details for arrays and maybe other things.

@JeffBezanson JeffBezanson was assigned
@StefanKarpinski
The Julia Language member

There's already dump(x) which shows the type and the fields for composite types and mostly fails for other types.

@StefanKarpinski
The Julia Language member

This is really a two-part issue:

  1. providing the ability to list all globally bound names.
  2. providing functionality that uses this ability to summarize what the globally bound names are bound to.
@JeffBezanson
The Julia Language member

dump to me is more of a debugging thing; it shows you everything. Here we want a concise readable summary like "2x2 Float64 Array".

@StefanKarpinski
The Julia Language member

Ok, I see what you're saying. And then whos would just print the summaries for all the bound globals? Seems reasonable.

@arvicco

Seems like whos is not working out of the box in either webRepl or terminal:

julia> whos()
in whos: io not defined
in whos at show.jl:450

Version 0.0.0+85010126.recc1

@StefanKarpinski
The Julia Language member
@arvicco

Ah I see. One more downside of non-packaged install I guess. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.