# Using local namespaces in Pluto

**URL:** <https://discourse.julialang.org/t/using-local-namespaces-in-pluto/112238>\
**Category:** New to Julia\
**Tags:** pluto\
**Created:** [March 28, 2024, 3:59pm UTC](https://discourse.julialang.org/t/using-local-namespaces-in-pluto/112238 "2024-03-28T15:59:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user23804985096787](https://avatars.discourse-cdn.com/v4/letter/u/9fc29f/32.png) [@user23804985096787](https://discourse.julialang.org/u/user23804985096787)\
**Post date:** [March 28, 2024, 3:59pm UTC](https://discourse.julialang.org/t/using-local-namespaces-in-pluto/112238/1 "2024-03-28T15:59:35Z")

</div>

Very basic question: I am writing some code in Pluto and can’t work out how to properly use local modules/namespaces.

When using Jupyter notebooks, I can create local modules (either inside the notebook or in a local file) and then include them via “using .MyLocalModule”, either with `using` or `import`, pretty much just as if they were an external package.

I know that using “ingredients” I can also fairly easily include the contents of another `.jl` file into my pluto notebook, but it’s not clear how to implement the equivalent of `using`. Do I just have to write `somefunction = MyModule.somefunction` for everything that I `export`ed in my module (even if there are hundreds of such functions)? Is there a better way? Or am I misusing modules here?

thanks a lot for any tips!

---

<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:** [March 28, 2024, 10:42pm UTC](https://discourse.julialang.org/t/using-local-namespaces-in-pluto/112238/2 "2024-03-28T22:42:57Z")

</div>

> [@user23804985096787](#):
>
> When using Jupyter notebooks, I can create local modules (either inside the notebook or in a local file) and then include them via “using .MyLocalModule”

Have you tried this in Pluto? It should work just fine.

---

<div class="post-metadata">

**Author:** ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)\
**Post date:** [March 29, 2024, 9:15am UTC](https://discourse.julialang.org/t/using-local-namespaces-in-pluto/112238/3 "2024-03-29T09:15:11Z")

</div>

It is a known issue, you can try out the hacky macro solution mentioned [here](https://github.com/fonsp/Pluto.jl/issues/2849#issuecomment-1995717422) as workaround
