天天看点

IPython、Notebook、qtconsole使用教程

ipython、notebook、qtconsole使用教程

自动补全功能,使用tab键,如输入im后按tab键,可自动补全import。

进入ipython,cmd中输入ipython

退出ipython,cmd中输入quit()

IPython、Notebook、qtconsole使用教程

使用魔法指令%

%run test.py 直接运行python脚本

%pwd: 显示当前工作目录。

%cd: 切换工作目录。

%bookmark: 工作目录书签

使用快捷键

ctrl+u 删除整行(光标在最后)

ctrl+k 删除整行(光标在最前)

ctrl+l 清空屏幕

ctrl+c 中止运行程序

ctrl+e 跳转到最后

ctrl+a 跳转到第一行(与windows热键冲突,是全选)

ctrl+r 反向搜索历史

2.1打开notebook

在cmd中输入ipython notebook

IPython、Notebook、qtconsole使用教程
IPython、Notebook、qtconsole使用教程

2.3新建python(换行shift+enter)

IPython、Notebook、qtconsole使用教程

3.使用qtconsole