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

better URLs for package text/html method display #31084

Open
stevengj opened this issue Feb 15, 2019 · 2 comments
Open

better URLs for package text/html method display #31084

stevengj opened this issue Feb 15, 2019 · 2 comments
Labels
domain:display and printing Aesthetics and correctness of printed representations of objects. domain:packages Package management and loading stdlib Julia's standard library

Comments

@stevengj
Copy link
Member

For Base methods, something like @which sum([1,2,3]) gives text/html output (e.g. in IJulia) with a useful github link, for example:
image
links https://github.com/JuliaLang/julia/tree/80516ca20297a67b996caa08c38786332379b6a5/base/reducedim.jl#L648

However, that doesn't work for packages, and now that so many functions have been moved to the stdlib, we get things like:
image
which uselessly links to a file:///Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/generic.jl on the buildbot machine.

For the stdlib at least, and ideally also for packages where we have a github URL and commit, it would be nice to link to a useful URL.

@stevengj stevengj added domain:packages Package management and loading domain:display and printing Aesthetics and correctness of printed representations of objects. stdlib Julia's standard library labels Feb 15, 2019
@fredrikekre
Copy link
Member

Duplicate of #26314?

@stevengj
Copy link
Member Author

stevengj commented Feb 15, 2019

@fredrikekre, not a duplicate, because @edit and @less need to find a local file, whereas the URL should ideally point to github like it does for Base methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:display and printing Aesthetics and correctness of printed representations of objects. domain:packages Package management and loading stdlib Julia's standard library
Projects
None yet
Development

No branches or pull requests

2 participants