2 ms·
They explain why this is different (and more complicated) - emphasis added: > Thus, for example, if you evaluate x = 5 in an input cell, then subsequently ask
by vineyardmike 3y ago
They explain why this is different (and more complicated) - emphasis added:
> Thus, for example, if you evaluate x = 5 in an input cell, then subsequently ask for the value of x, the result will be 5 wherever in the notebook you ask—even if it’s above the “x = 5” cell
And
> successive chat cells are “aware” of what’s in cells above them. But even if we add it later, a cell placed at the top won’t “know about” anything in cells below it.
Surely this is because the OpenAI api is chat based and they need to evaluate that chat in-order. it does seem like an inconvenient interface for programmatic LLM generators if you don’t want a chat UX.