# Scope of variables in Pluto

**URL:** <https://discourse.julialang.org/t/scope-of-variables-in-pluto/103413>\
**Category:** New to Julia\
**Tags:** package, pluto\
**Created:** [August 31, 2023, 4:57pm UTC](https://discourse.julialang.org/t/scope-of-variables-in-pluto/103413 "2023-08-31T16:57:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [August 31, 2023, 7:37pm UTC](https://discourse.julialang.org/t/scope-of-variables-in-pluto/103413/5 "2023-08-31T19:37:23Z")

</div>

I’m not getting any errors like yours.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/5/d5faa3ee3522333189b8483bca79a307716071f6.png)

so I’m not sure I believe this:

> [@GenerallyClueless](#):
>
> Nowhere in my code are any of these variables defined globally.

Maybe you have another begin-end block somewhere which is also using a global `i`.

Try running a minimal, self-contained problem first and then expand it to the full problem, so it is easier to diagnose your issue.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/scope-of-variables-in-pluto/103413)._
