Re: [sympy] Go a step back after a bad manipulation

2023-12-07 Thread Oscar Benjamin
I think what you mean here is more like "variables" rather than "symbols". You might want to try using Spyder which can show you the values of all of the Python variables you have defined. On Thu, 7 Dec 2023 at 17:16, Mario Lemelin wrote: > > If I had one functionality to have in Sympy, it would

Re: [sympy] Go a step back after a bad manipulation

2023-12-07 Thread Aaron Meurer
This is more a question of the notebook frontend, not SymPy (SymPy is just doing the symbolic math). The debugger in Jupyter might offer what you are looking for. Or there might be other notebook extensions that do it.I don't personally use the notebook very often so I don't have any specific solut

Re: [sympy] Go a step back after a bad manipulation

2023-12-07 Thread Mario Lemelin
If I had one functionality to have in Sympy, it would be the possibility to get access to a list of symbols that I am using in my notebook. A function called, let's say LstSymbols(), which give the name of the symbols that are in use in the notebook in addition to their values . This way, I can

Re: [sympy] Go a step back after a bad manipulation

2023-12-07 Thread Sangyub Lee
Jupyter notebook is already a good framework to write code like literature, and unfortunately, I don't think that we need a different tooling from SymPy to do that. I just advice to make multiple cells, structure your notebooks well, and print the intermediate results of your computation often in

Re: [sympy] Go a step back after a bad manipulation

2023-12-06 Thread gu...@uwosh.edu
Aaron's comments are really important. These are pitfalls that can easily lead to inconsistent outcomes and notebooks that do not work. On Wednesday, December 6, 2023 at 3:09:16 PM UTC-6 asme...@gmail.com wrote: > It really depends on how you structure your code. SymPy expressions > are immutabl

Re: [sympy] Go a step back after a bad manipulation

2023-12-06 Thread Aaron Meurer
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 cell

[sympy] Go a step back after a bad manipulation

2023-12-04 Thread Mario Lemelin
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 t