Struct not recognized as the same struct in a different script

I have a struct called HyperState I’m persisting with JLD2.save() in a Julia script. However when I try to load it back in a Pluto notebook, I get the warning: type Main.HyperState does not exist in workspace; reconstructing. But as seen below, I am loading the HyperState struct into the Pluto notebook. How do I get Pluto to match the HyperState struct loaded from the file and the one I’m importing?

In python I’ve never run into this problem since python somehow figures out you’re working with the same class. What is Julia doing differently?

image

Does this only happens in Pluto, or if you use Jupyter/REPL/script the result is the same?