UndefVarError: Grid not defined in Main I want to figured out this error, and I have also define my Grid in main but still got the error.
Hello, welcome to the Julia community. Could you share your code?
1 Like
Sorry I am not be easy with this, its personal for our research work.
There’s no way anyone will be able to help you based on your description of the issue.
You should try to turn your code into an MWE - you say you have defined Grid in your code but are getting the error after. Your MWE should be the shortest possible code that reproduces this error, something like:
julia> Grid = "something"
"something"
julia> Grid
"something"
julia> Grod
ERROR: UndefVarError: `Grod` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Here I define Grid and then access it afterwards, and I don’t get an error. Try to condense your issue down to the lines that defines Grid and then the line which actually raises the error.
1 Like