Spyder简述

导言

想打造轮子, 就必须要有一套完善的造轮子的工具. 我在jupyter+sciTE的组合里转来转去, 最后还是打算放弃这个组合, 因为离开了自动完成/调用提示/随时随地的访问文档帮助, 前行之路太困难, 即便是有很好的记性也是枉然. IDE不仅仅是代码编辑的舞台, 它需要的是帮助/查看变量/测试/调试/控制台等一系列工具的组合, 可以说应该是诸多工具物种有机地构成的一个生态系统, 就应该像是一片丰富的热带雨林一样, 起初走进去会让你迷失方向, 慢慢地熟悉了环境, 那就是天堂. 所以Spyder, 俺又回来了. 很凑巧的是"spyder"的英文原意是蜘蛛, 而这里的"spyder"是"科学+Python语言+开发环境", 可见他还是个双关语呢!

Spyder简述

Spyder是一个用于科学计算的使用Python编程语言的集成开发环境. 与其相伴是一个编辑器(写代码), 一个控制台(执行代码/查看结果), 一个对象浏览器(用来查看代码执行期间被定义的变量), 还有其它的一些工具, 帮助科学家高效地开发应用程序.

Spyder的口号是: 轻盈 直观 简单 强大

Spyder里的主要工具

  1. 编辑器

  2. 控制台 Console

  3. 变量浏览器 Variable Explorer

  4. 对象查看其 Object Inspector

  5. 其它的特色

    • History Log 历史日志

    • Array Editor 数组编辑

    • 在线帮助 Online Help
      浏览已安装的模块的动态文档

    • 工程浏览器 Project Explorer
      管理大型工程()

    • Pylint集成
      分析源代码的漏洞和低品质代码的符号

    • 个性定制

Spyder 快捷键:

注:前加“*”号的为Mac电脑专用:

|Spyder快捷键|
|:------------|:-----------|
|blockcomment |Ctrl+4 |
|breakpoint |F12 |
|close all |Ctrl+Shift+W |
|code completion |Ctrl+Space |
|conditional breakpoint |Shift+F12 |
|configure |F6 |
|copy |Ctrl+C |
|copy line |Ctrl+Alt+Down |
|cut |Ctrl+X |
|debug |Ctrl+F5 |
|debug with winpdb |F7 |
|delete |Del |
|delete line |'Ctrl+D ' 这个快捷键同我在scite里的正好相反, 还没有适应|
|duplicate line |'Ctrl+Alt+Up' 或者 'Ctrl+Alt+Down '|
|end of document |Ctrl+Down |
|end of line |Meta+F |
|find next |F3 |
|fine previous |Shift+F3 |
|find text |Ctrl+F |
|go to definition |Ctrl+G |
|go to line |Ctrl+L |
|go to next file |Ctrl+Shift+Tab |
|go to previous file |Ctrl+Tab |
|inspect current object |Ctrl+I |
|kill next word |Meta+D |
|
kill previous word |Meta+Backspace |
|kill to line end |Meta+K |
|
kill to line start |Meta+U |
|last edit location |Ctrl+Alt+Shift+Left |
|move line down |Alt+Down |
|move line up |Alt+Up |
|new file |Ctrl+N |
|next char |Meta+F|
|next cursor position |Ctrl+Alt+Right |
|
next line |Meta+N |
|next word |Meta+Right |
|open file |Ctrl+O |
|paste |Ctrl+V |
|
previous char |Meta+B |
|previous cursor position |Ctrl+ALT+Left |
|previous line |Meta+P |
|
previous word |Meta+Left |
|re-run last script |Ctrl+F6|
|redo |Ctrl+Y |
|replace text |Ctrl+H |
|rotate kill ring |Meta+Shift+Y |
|run |F5 |
|run selection |F9 |
|save all |Ctrl+Alt+S |
|save as |Ctrl+Alt+S |
|save file |Ctrl+S |
|select all |Ctrl+A |
|show/hide outline |Ctrl+Alt+O |
|show/hide project explorer |Ctrl+Alt+P |
|start of document |Ctrl+Up |
|
start of line |Meta+A |
|toggle comment |Ctrl+1 |
|unblockcomment |Ctrl+5 |
|undo |Ctrl+U |
|*yank |Meta+Y |
|run profiler |F10 |
|run analysis |F8 |

来源: 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

Spyder开源项目在google上的地址

https://code.google.com/p/spyderlib/

posted @ 2017-01-09 16:29  duanqs  阅读(5611)  评论(0编辑  收藏  举报