# Global variables, Parallel computation and Limiting notebook's context

If I limit the context of each notebook:

and use parallel computation:

ParallelTable[ToExpression["b" <> ToString[j]], {j, 1, 10}]


then after computation instead getting this:

{b1, b2, b3, b4, b5, b6, b7, b8, b9, b10}


I get this:

{Globalb1, Globalb2, Globalb3, Globalb4, Globalb5, Globalb6, Globalb7, Globalb8, Globalb9, Globalb10}


How can I get the rid of Global?

DistributeDefinitions didn't help. I use MMA 9.

• I get your first expression (no Global context). I should mention, though, that the default context that I use is Unique to This Notebook. Perhaps, you set your notebook context too late into the session. Dec 8 '14 at 14:24
• My comment above3 is based on MMA10. Using MMA9, I obtain your second result. Dec 8 '14 at 16:20

As I commented earlier, with a notebook configured as in your question, I obtain your first answer with MMA V10 and your second answer with MMA V9. Evidently, Wolfram Inc identified the V9 behavior as a problem and fixed it in V10. Since the problem occurs for ToExpression run in ParallelTable, perhaps
ToExpression[ParallelTable["b" <> ToString[j], {j, 1, 10}]]

{b1, b2, b3, b4, b5, b6, b7, b8, b9, b10}
`