IP Magic
Title
Question
I am not able see that last line that you say ipython specific. (I am running Python 3.4 (x64) on Windows 7 x64 and have installed ipython and other packages through pip install command. I haven't been able to install scipy though.)
This is what I get when I type "%hist". The last ipmagic line is missing.
In [7]: %hist
x=linspace(-2*pi,2*pi,100)
plot(x,xsin(x))
plot(x,x*sin(x))
xlabel("x")
ylabel("$f(x)$")
title('$x and sin(x)$')
%hist
Is it because of Python 3 Version? Please help.
Python Additional-features-of-IPython 03-04 min 10-20 sec
Answers:
Hi,
The output that you are getting is absolutely correct.
%hist itself is an ipython magic command which shows the history of commands executed in a session including the most recent command (which is %hist in our case).
It's just that the way it is displayed on terminal is different. This is probably because of the different ipython versions & not python version.
Thanks !
Login to add comment