The function Context[] returns the context of the Notebook the function is called in.
Is there a function where we can specify e.g a Notebook object and retrieve the context from that file?
I'm creating a palette where I want to change a variable located in a Notebook that has the context local to that notebook. From the palette I would like to use SelectedNotebook[] and retrieve the context.
Thx for advise!
Context[]does not need to be notebook'sCellContext, e.g. ifBegin/BeginPackagewas used. – Kuba Sep 08 '17 at 10:00myFunction[data]into the notebook (perhaps along with aNeeds)? Maybe automatically insert that as an input cell, then evaluate it. Maybe even delete it after evaluation, if that's what you prefer. – Szabolcs Sep 08 '17 at 14:48