# Help with shared arrays - code update

**URL:** <https://discourse.julialang.org/t/help-with-shared-arrays-code-update/125692>\
**Category:** General Usage\
**Tags:** question, distributed, sharedarrays\
**Created:** [February 8, 2025, 7:10pm UTC](https://discourse.julialang.org/t/help-with-shared-arrays-code-update/125692 "2025-02-08T19:10:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [February 8, 2025, 7:45pm UTC](https://discourse.julialang.org/t/help-with-shared-arrays-code-update/125692/2 "2025-02-08T19:45:41Z")

</div>

> [@Help with shared arrays](https://discourse.julialang.org/t/help-with-shared-arrays/125233/5):
>
> ```julia
> include("Simulations.jl")
> using .Simulations
> 
> ```

Try putting an `@everywhere` infront of these lines as well and move them below where you create the workers.  
In general all workers need to load the code that they are going to run. I am wondering why you didn’t get an error though.

Note that in your example that works you have `@everywhere` infront of you `Simulate` function.

---

_[View the full topic](https://discourse.julialang.org/t/help-with-shared-arrays-code-update/125692)._
