Hi – If I have an error in a relatively long IJulia cell, IJulia correctly describes the error, but does not specify the location:
In[1]:
x = 2
y = 3
z = not_defined
a = 4
b = 5
output:
UndefVarError: not_defined not defined
For a long cell, this makes it difficult to find the location of the error.
If I had wrapped the statements in a function:
In[1]:
function wrap()
x = 2
y = 3
z = not_defined
a = 4
b = 5
end
wrap()
Output:
UndefVarError: not_defined not defined
Stacktrace:
[1] wrap() at ./In[41]:4
then the error message provides a helpful location, but since I’m developing interactively, I want to easily modify the global scope.
Is there a way to work around this issue?