# Can I make docstrings work with @everywhere?

**URL:** https://discourse.julialang.org/t/can-i-make-docstrings-work-with-everywhere/11402
**Category:** General Usage
**Created:** [June 4, 2018, 1:14am UTC](https://discourse.julialang.org/t/can-i-make-docstrings-work-with-everywhere/11402 "2018-06-04T01:14:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chunkulator](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chunkulator](https://discourse.julialang.org/u/chunkulator)
#### Post date: [June 4, 2018, 1:14am UTC](https://discourse.julialang.org/t/can-i-make-docstrings-work-with-everywhere/11402/1 "2018-06-04T01:14:32Z")

</div>

It seems I can’t document my code with docstrings if I want to do parallel computing with the @everywhere macro:

test\_docstring.jl:

```julia
"This is a doc string"
@everywhere function foo()
    nothing
end

```

```julia
julia> versioninfo()
Julia Version 0.6.1
Commit 0d7248e (2017-10-24 22:15 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Prescott)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)

julia> include("test_docstring.jl")
ERROR: LoadError: cannot document the following expression:

@everywhere function foo() # ...somepath.../test_docstring.jl, line 3:
        nothing
    end

'@everywhere' not documentable. See 'Base.@ __doc__' docs for details.

Stacktrace:
 [1] error(::String, ::String, ::Vararg{String,N} where N) at ./error.jl:30
 [2] include_from_node1(::String) at ./loading.jl:576
 [3] include(::String) at ./sysimg.jl:14
while loading /...some_path.../test_docstring.jl, in expression starting on line 1

```

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [June 4, 2018, 6:56am UTC](https://discourse.julialang.org/t/can-i-make-docstrings-work-with-everywhere/11402/2 "2018-06-04T06:56:10Z")

</div>

Try

```julia
@everywhere begin
    "This is a doc string"
    function foo()
        nothing
    end
end

```

---

<div class="post-metadata">

### Author: ![chunkulator](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chunkulator](https://discourse.julialang.org/u/chunkulator)
#### Post date: [June 18, 2018, 12:10am UTC](https://discourse.julialang.org/t/can-i-make-docstrings-work-with-everywhere/11402/3 "2018-06-18T00:10:57Z")

</div>

Works for me. Thanks!
