Hey, I’m currently doing mathematica for school and I am trying to complete this lab (as attached). I was able to perform the manipulations function in the “answers” section but after rebooting my laptop for an unrelated issue, the manipulate blue line doesn’t appear anymore; so I’m not sure what went wrong.
Answer Section, Question 4&
Currently using Mathematica on Opera and issue appears even when the file opened in safari.
I was wondering if/when wolfram prompts
"Evaluate initialization cells? Do you want to automatically evaluate
all the initialization cells in this notebook? Cancel/No/Yes
has an impact on this?
So much for “Have you tried turning it off and on again?”
I assume you just need to evaluate all the cells again. Definitions in the environment typically go away when you shut down Mathematica. Evaluating the initialization cells might work if the necessary definitions happen to be in the initialization cells.
You need to evaluate initialization cells, along with the cell that contains
model1[n0_,k_][t_]:= n0 Exp[k t]; (* modify the definition to reflect your model choice *)
directly above the Manipulate object.
If you want that manipulate output to immediately be usable, it might be best to set the cell that contains the definition of model1 as an initialization cell as well.
Add the option
SaveDefinitions->True
to your manipulates. This may resolve your issue.
Without this option setting the Manipulate does not store the definitions you created after you leave the Mathematica session. With this option it will automatically place the definitions that it depends on internally as initialization to be evaluated when the Manipulate appears on your screen when opened up in a new Mathematica session.