Is it possible to save an IPython workspace (defined functions, different kinds of variables, etc) so that it can be loaded later?
This would be a similar function
You can try
%save name lines
Like if you have input 67 commands and you want to save all of them:
%save myhistory 1-67