Closed leo-brewin closed 4 years ago
Well spotted! I have just pushed a fix to github which effectively does 3, but automatically. To trigger this with your already existing 'shared' notebook, make a small change and save it, so that the import functionality re-generates the python code from the notebook.
Thanks Kasper for the quick fix.
Hi Kasper, I'm bumped into a small problem with importing Cadabra notebooks. I'm running this notebook
which imports the
shared
notebook containingThe output should be zero but is in fact
It seems that a call to
collect_terms
hasn't been applied (which is normally part of thepost_process
function). I can fix this in a number of wayscollect_terms
in the functioncheck
.shared
notebook.from cadabra2_defaults import *
in theshared
notebook.I prefer the last choice. But I suppose my question is -- Is this the expected behaviour? Should it not 'just work' without this change?