Closed Doxdrum closed 5 years ago
I can reproduce this, and I think I know what causes this. Give me an hour to sort this out.
If you want a quick workaround, do
sed -i -e '/cell_id/d' sympy_examples.cnb
The problem is that this is an old notebook in which the cell id's are broken. The line above removes them and forces cadabra to re-label the cells.
I have fixed that notebook (as well as the 'plotting' notebook) by fixing the cell_id
s. We have switched to a new system in which cell ids are essentially uuids, so that you can compare two versions of a notebook and get sensible results even when cells are moved around or removed.
The other but (with roots not working) had to do with the display
function, which did not work correctly when displaying lists of sympy expressions. Now fixed as well.
Thank you Kasper! Excellent job, as usual!
Using the latest release
Version 2.2.7 (build 2103.85385ff298 dated 2019-05-08)
I try to run thesympy_examples.cnb
notebook provided in theexamples
folder, and I rum into troubles: the prompt keeps jumping to lines it should not, and the calculations were freeze, and so on.Q1: Can someone reproduce this behaviour?
I decided then to start a copy of the cnb from the scratch (because I suspect that the problems are caused by a flaw in the code of the notebook (the introduction of a weird cell or something similar). My notebook runs OK, but it fails to solve algebraic equations with imaginary roots (see the files sympy_examples.pdf and sympy_examples.txt)
Q2: Can you reproduce my results?
Q3: What is the problem with the codes (mine and the one in the repository)?