I'm getting strange behavior in some of my notebooks that makes it seem like
Get load asynchronously. When I evaluate many cells together (for example, when I evaluate initialization cells), it seems as if
Import, and sometimes
Get, are "done" before the load is complete, so that subsequent cells are executed before loaded data (or executed commands) in the external file have have been fully loaded or executed.
For example, I have
data = Import["some data"];
and later in my notebook
something = doSomethingWith[data];
and I execute these cells together (e.g. as initialization cells), I get errors that indicate bad or non-existant values for
Similarly, when I have,
someSettingInMySettings = someModification;
I end up with the value for
someSettingInMySettings that's defined in
MySettings rather than
Get load asynchronously? If so, is there a way to "wait" until they have completed before proceeding with evaluation?