Giter VIP home page Giter VIP logo

Comments (8)

JeffBezanson avatar JeffBezanson commented on April 27, 2024

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.

from julia.

StefanKarpinski avatar StefanKarpinski commented on April 27, 2024

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

from julia.

StefanKarpinski avatar StefanKarpinski commented on April 27, 2024

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.

from julia.

JeffBezanson avatar JeffBezanson commented on April 27, 2024

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

from julia.

StefanKarpinski avatar StefanKarpinski commented on April 27, 2024

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

from julia.

arvicco avatar arvicco commented on April 27, 2024

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

from julia.

StefanKarpinski avatar StefanKarpinski commented on April 27, 2024

That's been fixed. Update your repo, pls.

On Wed, May 16, 2012 at 2:48 AM, Ar Vicco <
[email protected]

wrote:

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


Reply to this email directly or view it on GitHub:
#37 (comment)

from julia.

arvicco avatar arvicco commented on April 27, 2024

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

from julia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.