gen-quickstart
gen-quickstart copied to clipboard
Naming conflict in Introduction to Modeling in Gen.ipynb section 5. Calling other generative functions
The function declaration
@gen function bar()
@trace(bernoulli(0.5), :x)
@trace(foo())
end
clashes with PyPlot.bar imported earlier. When running the notebook in sequence this will result in the error
cannot assign a value to variable PyPlot.bar from module Main
Any renaming of the function to a name that is not yet taken should solve this issue (tested with name bar2
).