nb = CreateDocument[{Dynamic@$Context}, CellContext -> Notebook]
It will show Notebook$$22$93500` or something similar. How to get this context value without interfering with nb too much? You should also assume we do not control nb generation.
Unfortunately
AbsoluteCurrentValue[nb, CellContext]
Notebook
FrontEnd knows it: How does the Kernel know the $Context in a localized notebook, the question is if user can access it.
CellContext -> Notebookset in its preferences? – Edmund Feb 02 '19 at 13:01CellGroup/Cellbecause then it does not make sense. But we can say: "what is the context inFirst@Cells[nb]. Then this makes sense for every scenario – Kuba Feb 02 '19 at 13:58"FE`"context get called when you evaluate anything in the notebook but I don’t know where the context gets pulled from. – b3m2a1 Feb 03 '19 at 05:36