fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.98k stars 294 forks source link

deepcopy of Modules not supported #1688

Open jbrea opened 2 years ago

jbrea commented 2 years ago

The attached notebook runs in Pluto v0.17.1 but it fails in Pluto v0.17.2 with error deepcopy of Modules not supported. I guess it doesn't like the MLJFlux.@builder macro. bug.jl.zip

Pangoraw commented 2 years ago

Interesting, this is related to function wrapping and we will need to modify the current behavior. In the meantime, you can work around the problem by adding an expression that disables function wrapping in the same cell as @builder like a function definition for example f() = 1.