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

Syntax for displaying documentation #1296

Closed
warrd opened this issue Sep 20, 2012 · 3 comments
Closed

Syntax for displaying documentation #1296

warrd opened this issue Sep 20, 2012 · 3 comments

Comments

@warrd
Copy link

warrd commented Sep 20, 2012

When working within a technical computing environment (Matlab, Numpy/IPython, R..) it's important to explore code interactively. One very useful feature is being able to quickly bring up the documentation for some function/object.

In IPython, entering obj? at the prompt will output the doc-string for that object.
In Julia it should be possible to use this, or some other syntax, to display the documentation comment (I realise the syntax for this may not yet be decided).

If the underlying implementation is just a function call on the object returning a string, it might also prove useful in non-interactive tasks such as in the automatic generation of documentation for a module.

@StefanKarpinski
Copy link
Member

This already exists:

julia> help(cat)
Loading help data...
cat(dim, A...)

   Concatenate the input arrays along the specified dimension

The main issue is that the documentation index is a bit sparse.

@warrd
Copy link
Author

warrd commented Sep 22, 2012

That's good to know, thanks..

So at the moment the help strings are generated from the sphinx documentation and stored in a file helpdb.jl.
I don't know if my suggestion (a language mechanism for retrieving inline documentation) is something you may still want to consider at a later date...

@JeffBezanson
Copy link
Member

See also #762.

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

No branches or pull requests

3 participants