导言
想打造轮子, 就必须要有一套完善的造轮子的工具. 我在jupyter+sciTE的组合里转来转去, 最后还是打算放弃这个组合, 因为离开了自动完成/调用提示/随时随地的访问文档帮助, 前行之路太困难, 即便是有很好的记性也是枉然. IDE不仅仅是代码编辑的舞台, 它需要的是帮助/查看变量/测试/调试/控制台等一系列工具的组合, 可以说应该是诸多工具物种有机地构成的一个生态系统, 就应该像是一片丰富的热带雨林一样, 起初走进去会让你迷失方向, 慢慢地熟悉了环境, 那就是天堂. 所以Spyder, 俺又回来了. 很凑巧的是"spyder"的英文原意是蜘蛛, 而这里的"spyder"是"科学+Python语言+开发环境", 可见他还是个双关语呢!
Spyder简述
Spyder是一个用于科学计算的使用Python编程语言的集成开发环境. 与其相伴是一个编辑器(写代码), 一个控制台(执行代码/查看结果), 一个对象浏览器(用来查看代码执行期间被定义的变量), 还有其它的一些工具, 帮助科学家高效地开发应用程序.
Spyder的口号是: 轻盈 直观 简单 强大
Spyder里的主要工具
-
编辑器
-
控制台 Console
-
变量浏览器 Variable Explorer
-
对象查看其 Object Inspector
-
其它的特色
-
History Log 历史日志
-
Array Editor 数组编辑
-
在线帮助 Online Help
浏览已安装的模块的动态文档 -
工程浏览器 Project Explorer
管理大型工程() -
Pylint集成
分析源代码的漏洞和低品质代码的符号 -
个性定制
-
Spyder 快捷键:
注:前加“*”号的为Mac电脑专用:
Spyder快捷键 |
---|
blockcomment |
breakpoint |
close all |
code completion |
conditional breakpoint |
configure |
copy |
copy line |
cut |
debug |
debug with winpdb |
delete |
delete line |
duplicate line |
end of document |
end of line |
find next |
fine previous |
find text |
go to definition |
go to line |
go to next file |
go to previous file |
inspect current object |
*kill next word |
*kill previous word |
*kill to line end |
*kill to line start |
last edit location |
move line down |
move line up |
new file |
*next char |
next cursor position |
*next line |
*next word |
open file |
paste |
*previous char |
previous cursor position |
*previous line |
*previous word |
re-run last script |
redo |
replace text |
*rotate kill ring |
run |
run selection |
save all |
save as |
save file |
select all |
show/hide outline |
show/hide project explorer |
start of document |
*start of line |
toggle comment |
unblockcomment |
undo |
*yank |
run profiler |
run analysis |
来源: Spyder快捷键_Python_第七城市 http://www.th7.cn/Program/Python/201604/818977.shtml
Ctrl+i 快捷键: 发送python对象到Object Inspector
New IPython Console (Spyder 2.2+): Add Ctrl+I keyboard shortcut to send an object the Object Inspector · Issue #1058 · spyder-ide/spyder · GitHub https://github.com/spyder-ide/spyder/issues/1058
关于Spyder的一个黑客讨论贴子
Spyder – Scientific Python Development Environment | Hacker News https://news.ycombinator.com/item?id=6622156