[IPython-User] history of previous session

Timmie timmichelsen@gmx-topmail...
Fri Nov 9 03:48:58 CST 2012


Hello,
ho can I resun commands for a previous session?

[In] %history -g import

32/2: import pandas as pd
32/4:
from pandas.core.frame import DataFrame
import pandas.core.nanops as nanops
32/28:
import numpy as np

from pandas.core.frame import DataFrame
import pandas.core.nanops as nanops
from pandas.tseries.util import isleapyear
from pandas.tseries.index import date_range
32/66: import scipy stats as stats
32/67: import scipy.stats as stats
32/254: import pandas.util.testing as tm
32/258: import numpy as np
33/1: import numpy as np
33/10: import pandas as pd

_i32/2
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-64-8bbc4f759ecc> in <module>()
----> 1 _i32/2

TypeError: unsupported operand type(s) for /: 'unicode' and 'int'

I did not find a solution at:
http://ipython.org/ipython-doc/stable/interactive/reference.html#command-line-usage

BTW, is there a possibility to save a session with all its variables and imports
to a gzip archive or a like and load it the next day?

Thanks in advance for your help,
Timmie



More information about the IPython-User mailing list