It really depends on how you structure your code. SymPy expressions
are immutable, so if you just assign each step to a different
variable, you can easily refer back to previous variables.
You should also be careful with Jupyter notebooks that if you delete
cells, or insert cells before other cells, you may end up with a
notebook that doesn't actually execute again if you open it again
later, because when you start a notebook from scratch the cells are
always executed from top to bottom, which may not be the original
execution order. It can sometimes be a good idea to "restart and run
all" in your notebook to reset the state and ensure everything runs
again.
Aaron Meurer
On Mon, Dec 4, 2023 at 10:24 AM Mario Lemelin <
math0...@gmail.com> wrote:
>
> Hello,
> This is my first time. Just wondering if there is a command that I can do when, in a jupyter notebook, when I want to go back one step (If I did a bad algebraic manipulation for example). Thank you in advance for your help. Mario
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sympy+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/82c3aedb-215b-4083-a462-42bbc5684632n%40googlegroups.com.