-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Some more examples/formatting/xrefs for Distributed docs #29011
Conversation
stdlib/Distributed/src/cluster.jl
Outdated
6 | ||
|
||
julia> workers() | ||
5-element Array{Int64,1}: |
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.
Perhaps showing 3 workers is enough to get the point across? Saves some vertical space :)
735faea
to
b81f2e4
Compare
Better? |
You seem to have missed the one with Kristoffers comment. |
stdlib/Distributed/src/cluster.jl
Outdated
`nprocs()` if `nprocs() == 1`. | ||
|
||
# Examples | ||
Here, `julia` was launched with `-p 5`: |
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.
Since these are julia-repl
blocks, maybe we can instead do something like
$ julia -p 5
julia> nprocs()
6
nworkers()
5
```
? Ans similarly on the other places.
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.
That's a nice idea
b81f2e4
to
fd9cb39
Compare
fd9cb39
to
a6f82d6
Compare
(cherry picked from commit 448bc7d)
(cherry picked from commit 448bc7d)
No description provided.