save ipython session to file code example Example: ipython save session %save current_session ~0/ %save previous_session ~1/