@from (from Fromfile) does not work inside begin-en for local module workflow

as pointed out in the issue

Those two aren’t equivalent. Macro expansion will always happen on the whole top-level expression before any code is evaluated.

so this is the limitation of FromFile we will need a proper implementation within the loading
to have the behavior properly, which is unlikely to happen any time soon. Unless someone can convince the rest of the community about it.

I assume you are using Pluto which cause you hit this? I’m not sure if @fonsp has any idea of a workaround in Pluto, perhaps no.