Weird, the text version of the notebook had code that was not displayed at all (below id=25).
I deleted it from the text version, restarted the notebook, evaluated all, it worked, I did this a couple of times and then again: boom. The interesting thing is that if I repeated the last command manually, it evaluated, so it was not that the definition of dwaterv was not evaluated at all, but the cell dwaterv.subs(locals()) must have been evaluated before the definition. See code below (id=31 was put in after Evaluate All). Stan Bugs system:sage {{{id=11| %html <h1>For testing purposes: /// <html><font color='black'><h1>For testing purposes:</font></html> }}} {{{id=8| var('ab av jbiom lwat p rwat biom veloc mort epot esv etv esb etb wv wb qbv qvb bv') /// (ab, av, jbiom, lwat, p, rwat, biom, veloc, mort, epot, esv, etv, esb, etb, wv, wb, qbv, qvb, bv) }}} {{{id=9| dwaterv = (av*p - esv - etv - qvb + qbv) dwaterb = (ab*p - esb + qvb - qbv) ab = 1 - av qvb = veloc*wv/av qbv = veloc*wb/ab esv = av*lwat*(wv/av) etv = av*rwat*(wv/av)*(bv/av)^2 esb = ab*lwat*wb/ab dbv = jbiom*etv - mort*bv /// }}} {{{id=18| %hide %html where av and ab are the area fractions by the vegetated and bare soil box respectively. av+ab=1. /// <html><font color='black'>where av and ab are the area fractions by the vegetated and bare soil box respectively. av+ab=1.</font></html> }}} {{{id=19| assume(p>0, veloc>0, mort>0,lwat>0,jbiom>0,rwat>0,av>=0,av<=1,wv>=0,wb>=0,bv>=0) /// }}} {{{id=20| dwaterv.subs(locals()) /// Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/sschym/.sage/sage_notebook/worksheets/admin/4/code/ 14.py", line 6, in <module> exec compile(ur'dwaterv.subs(locals())' + '\n', '', 'single') File "/Users/sschym/Programs/sage/local/lib/python2.5/site-packages/ SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module> NameError: name 'dwaterv' is not defined }}} {{{id=31| dwaterv.subs(locals()) /// -veloc*wv/av - bv^2*rwat*wv/av^2 - lwat*wv + veloc*wb/(1 - av) + av*p }}} {{{id=32| /// }}} --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---