gen-quickstart icon indicating copy to clipboard operation
gen-quickstart copied to clipboard

Naming conflict in Introduction to Modeling in Gen.ipynb section 5. Calling other generative functions

Open fplk opened this issue 4 years ago • 0 comments

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).

fplk avatar Mar 11 '20 00:03 fplk