-
Notifications
You must be signed in to change notification settings - Fork 45
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
Update docstring examples and code #970
Conversation
Fence/indent/dedent code samples in docstrings with proper language tags so that built-in julia help and Documenter.jl can pick them up.
X = source(1:10) | ||
Y = @node selectrows(X, 3:4) | ||
julia> X = source(1:10) | ||
julia> Y = @node selectrows(X, 3:4) | ||
julia> Y() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto previous comment.
julia> @load LogisticClassifier pkg=MLJLinearModels | ||
julia> X, y = @load_crabs; | ||
julia> pipe = Standardizer() |> LogisticClassifier(); | ||
julia> mach = machine(pipe, X, y) |> fit!; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to revert these. See previous comments on including julia>
prompt.
src/show.jl
Outdated
|
||
""" | ||
function _recursive_show end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
2 | ||
|
||
```julia-repl | ||
julia> object = (X = (x = 1, y = 2), Y = 3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
julia> object = (X = (x = 1, y = 2), Y = 3); | |
object = (X = (x = 1, y = 2), Y = 3); |
@@ -293,7 +298,7 @@ column cycle fastest, those in the last clolumn slowest. | |||
|
|||
### Example | |||
|
|||
```julia | |||
```julia-repl | |||
julia> iterators = ([1, 2], ["a","b"], ["x", "y", "z"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
julia> iterators = ([1, 2], ["a","b"], ["x", "y", "z"]); | |
iterators = ([1, 2], ["a","b"], ["x", "y", "z"]); |
``` | ||
existing_names = [] | ||
```julia-repl | ||
julia> existing_names = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
julia> existing_names = []; | |
existing_names = []; |
I'll investigate the fail. Its does not immediately appear to be related. |
Yes, I can confirm that the fails here are orthogonal; see #972 . |
Closed-reopened to re-trigger tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @abhro for your work on this.
Fence/indent/dedent code samples in docstrings with proper language tags so that built-in julia help and Documenter.jl can pick them up.