3 ms·
I ran the insert statement before the create statement and it appeared to work.
by adamhp 3y ago
I ran the insert statement before the create statement and it appeared to work.
- nalgeon 3y agoExactly. Because of this: > The last thing I want as a reader is code examples that fail or behave oddly because they were run out of order. Or because I didn't run some cells. Or because I changed a cell and didn't re-run it. > Codapi code cells, unlike Jupyter's, have no hidden state. Instead, they execute the whole chain of dependencies as needed to ensure that the reader gets a consistent result.
- adamhp 3y agoTo the second point, this is always how Jupyter behaves for me because I just "Run to cell"... If the other cells ran, it should be apparent with some sort of feedback. Don't need the output but at least visual feedback that they ran. Otherwise I'm distrustful that anything is actually running behind the scenes because the runtime shouldn't have those inserted tables.
- pimlottc 3y agoIt's confusing because while it does run the previous cells as needed, it does not update the "output" of those cells on the page. So it's not very clear what the dependencies are and what steps were actually executed.