Chapter 1: Problem 12
Start ipython and give the following command, which will save the interactive session to a file mysession.log: $$ \text { In [1]: \%logstart }-r \text {-o mysession.log } $$ Thereafter, define an integer, a real number, and a string in IPython. Apply the type function to check that each object has the right type. Print the three objects using printf syntax. Finally, type logoff to end the recording of the interactive session: $$ \text { In [8]: \%logoff } $$ Leave IPython and restart it as ipython -logplay mysession.log on the command line. IPython will now re-execute the input statements in the logfile mysession.log so that you get back the variables you declared. Print out the variables to demonstrate this fact.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.