1.ipython安装
http://ipython.org/install.html
http://archive.ipython.org/release/2.2.0/
Anaconda安装
/问题:安装了ipython和anaconda以后,貌似很好用,但是后面碰到一个棘手的问题。
就是后面安装其他python库比如mysqldb,ipython里面找不到它,因为现在的默认python变成了anaconda那个安装目录了,但是
mysqldb依旧安装到原先的python里面去。
所以,怎么办呢?
我卸载了anaconda和ipython,再重新安装ipython,问题解决了。
有没有同学有更好的解决方案呢?
2.下面是刚刚获得2013年jolt大奖的IDE
ipython notebook
http://ipython.org/notebook.html
///3.magic相关的
分为Line Magic和Cell Magic
1.Line Magic
%
%timeit range(1000)
2.Cell Magic
%%
%%timeit x=numpy.random.randn((100,100))
numpy.linalgsvd(x)
常用magic函数
lsmagic 列出有哪些magic函数
magic 完整的帮助
automagic
不带参数,就在on和off之间切换
带参数
on,1,True
off,o,False
cls clear screen
colors noclor|linux|lightbg
config 配置ipython
cpaste 粘贴并且执行一个预先格式化好的代码块
run
运行script文件
下面两种用法是类似的:
%run hello.py
!python hello.py
store
system
sx
调用外部命令,下面两种用法是等价的:
%sx command
!!command
who, whos,who_ls
who_ls是who的带返回的版本