Hello
I always get this error when I run .jl files. I tried windows and ubuntu but still same error.
UndefVarError: (name of .jl file) not defined
Could you please advise
Thanks
Hello
I always get this error when I run .jl files. I tried windows and ubuntu but still same error.
UndefVarError: (name of .jl file) not defined
Could you please advise
Thanks
Can you please post the exact code you’re trying to run which results in an error? I feel like you’re missing to put the path inside quotes to make it a string, but I don’t really know what you’re doing.
You need to pass the filepath as a string:
julia> include(myfile.jl)
ERROR: UndefVarError: `myfile` not defined
Stacktrace:
[1] top-level scope
@ REPL[197]:1
julia> include("myfile.jl")
ERROR: SystemError: opening file "...\\myfile.jl": No such file or directory
Thank you so much it worked