I have a Notebook cell with multiple line of codes. Since their only purpose is to make configurations and introduce self-defined functions, I would prefer to separate them from my main code. Therefore, it would be comfortable to save the code inside another Mathematica file and then just call it from my main document in the beginning to make all settings. Like:
Main:
MyConf[];
Library:
MyConf[] := [
Print["Hello World!"];
Print["XYZ"];
]
DumpSave["file",{variables}]and read it byGet["file"]. The saved values will be assigned to the variables when you run theGet[..]– Rom38 May 31 '19 at 07:35