-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
Live Docs: show package defining a function #2737
Comments
I did some experiments here, and the big question in this issue is on the Julia side: Currently, we use
|
Why not evaluate the symbol (in a try/catch), and show its Incidentally, because I have or type |
Yes amazing! For stacktraces we are have this already implemented: #2813 and we are working on supporting URLs for more methods in https://github.com/JuliaPluto/MethodURL.jl (see JuliaLang/julia#47709) |
Evaluating in trycatch and getting
What we want is to get something like: [
Dict(
:method => "sqrt(::Matrix)",
:method_url => "https://...",
:docs => "<p>..."
),
Dict(
:method => "sqrt(::Real)",
...
)
] We can give this list to the frontend and show documentation for multiple methods in a nicer way, and include URLs to source code. I.e. the goal is to get more structured information than what |
Perhaps I'm missing something or I was not clear, but when I look at a StackTrace in Pluto, There's nowhere I can click to go that that definition, right? Whereas in the REPL, I'd just type I know this is already supported for code defined in the same Pluto notebook, but the REPL functionality works for any code. That REPL code to do that is here: https://github.com/JuliaLang/julia/blob/master/stdlib/REPL/src/REPL.jl#L1638. Being able to click somewhere in Pluto to open up my editor would be fantastic! Could be conditional on JULIA_EDITOR being defined, of course. |
You can click on the filename (ends in |
When reading docs, it would be nice to show from which package a function/method originates.
Current:
The text was updated successfully, but these errors were encountered: