Editorial question88.7K views1,867 votes0 answers4,277 following
AI-generatedDatabase schema change persists after Jupyter kernel restart in notebook cell
Goal Determine whether a Jupyter notebook can automatically roll back a database schema change executed in a code cell when the cell raises an exception or the kernel restarts. Constraints Restarting the kernel clears in-memory execution state but does not reverse committed DDL against an external database. The %reset magic clears the user namespace without