Tag Info

New answers tagged


Your memoized values are not lost when the package is reloaded, so long as you do not quit the kernel. I did a couple of tests as follows. First without packages, just in the notebook: In[125]:= f[x_] := f[x] = x^2 In[126]:= Table[f[i], {i, 10}] Out[126]= {1, 4, 9, 16, 25, 36, 49, 64, 81, 100} In[127]:= f[x_] := f[x] = x^3 In[128]:= Table[f[i], {i, ...


If you merely wanted to reload the package without restarting the Kernel you could use Get; see: When to use Get vs Needs. Since you want a partial reload I suggest writing the Package in parts; you could use e.g. Foo1.m, Foo2.m, Foo3.m etc. (or more descriptive names realistically). Then use Foo.m simply to load these other Package files. This way you ...

Top 50 recent answers are included