Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cancel one dict entry

Using sage notebook, is there a way to cancel an entry from an already defined dictionary without rewriting the whole dict ?

For example, let's say my sage worksheet goes as such:
soln = {}; # defining dictionary
soln[b] = 0.5
soln[c] = 0.2
soln[N] = 6;
etc. for many more soln entries

Then I do something which requires all values in soln, and after, I want to plot a function which uses all of soln values but one, say N. How can I cancel it ?

What I currently do is rerun my whole worksheet cell by cell after having commented the soln[N] = 6; line, but it takes more time than I'd like.

Thanks in advance!