Alex02/06/2023, 9:42 AM
But I get an error: ModuleNotFoundError: No module named '__prefect_loader__' How can I fix it?
from __prefect_loader__ import CustomBlockName
Jason Noxon02/15/2023, 1:06 PM
Eric Sexton02/20/2023, 10:18 PM
Emil Christensen02/21/2023, 2:16 PM
is just a placeholder there. The
needs to be imported and available wherever you’re using it (i.e. in your flow code). You can also set
(doc) to force loading the block.
Jason Noxon02/21/2023, 2:23 PM
having the python file for that custom block handy. Prefect will store the parameters for the block, but not the block code. SO - suggestion: as a default, this info should probably be on the block screen when a custom block is created...maybe?