# How to NOT interpolate on remote worker?

**URL:** https://discourse.julialang.org/t/how-to-not-interpolate-on-remote-worker/53027
**Category:** General Usage
**Tags:** question, parallel, distributed
**Created:** [January 8, 2021, 6:35am UTC](https://discourse.julialang.org/t/how-to-not-interpolate-on-remote-worker/53027 "2021-01-08T06:35:05Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [January 8, 2021, 6:35am UTC](https://discourse.julialang.org/t/how-to-not-interpolate-on-remote-worker/53027/1 "2021-01-08T06:35:05Z")

</div>

```julia
julia> using Distributed

julia> addprocs(2);

julia> @everywhere a = [1,2]

julia> @everywhere println(a)
[1, 2]
      From worker 3: [1, 2]
      From worker 2: [1, 2]

julia> a = 5
5

julia> @everywhere println(a)
5
      From worker 2: [1, 2]
      From worker 3: [1, 2]

julia> @fetchfrom 3 a[2]
ERROR: On worker 3:
BoundsError
Stacktrace:

julia> @everywhere println(a)
5
      From worker 2: [1, 2]
      From worker 3: 5

```

this above behavior is weird, how do I access the `a` on the remote?

My real use case is if I have a `@distributed` for loop, how can I ask Julia NOT to use my local (main process) variable in the body of the loop?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-not-interpolate-on-remote-worker/53027)._
