用于教学的Python 3 IDE [英] Python 3 IDE for teaching

查看:177
本文介绍了用于教学的Python 3 IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着Python 3的成熟和逐渐被采用,我们正在采取行动,并在12-18岁儿童的入门编程课程中采用它。是否有支持Python 3的免费(最好是开源)IDE,最好按照以下条件满足以下条件:

With Python 3 maturing and slowly gaining adoption, we're taking the plunge and adopting it in our introductory programming classes for kids aged 12-18. Is there a free (preferably open source) IDE you'd recommend that supports Python 3, preferably meeting the following criteria in order of necessity:


  1. 跨平台(Windows和Linux)

  2. 标准功能:语法高亮,自动缩进等。

  3. 运行按钮,而不是你必须键入python foo.py的控制台。

  4. 上下文敏感的帮助(例如当它们悬停在 math.floor()它应该为函数提供帮助。)

  5. 嵌入式Python shell。

  6. 内置调试器<​​/ li>
  7. 剥离无用的碎片,例如他们在介绍课程中不需要重构工具,自动完成会影响教学。沿着同样的路线,它应该是轻量级的,因为有些孩子会回到旧的PC无法运行强大的IDE,如Eclipse。

  1. Cross platform (Windows and Linux)
  2. Standard features: syntax highlighting, auto-indent, etc.
  3. Run button, rather than console where you have to type "python foo.py".
  4. Context-sensitive help (e.g. when they hover over math.floor() it should give help for the function).
  5. Embedded Python shell.
  6. Built-in debugger
  7. Useless crud stripped, e.g. they don't need refactoring tools during an intro class and auto-completion gets in the way of teaching. Along the same lines, it should be lightweight as some kids will go home to old PCs unable to run beefy IDEs such as Eclipse.


推荐答案

Komodo Edit 符合您的大多数要求(与其他人一样)在评论中提到)并支持版本6中的Python 3:

Komodo Edit meets most of your requirements (as others mentioned in the comments) and supports Python 3 from version 6:


  • 开源和免费。

  • 跨平台(Windows和Linux,也是Mac) - 基于 XULRunner

  • 标准功能:语法高亮,自动缩进等 - Komodo拥有最好的Python自动完成我见过;他们将从变量赋值中进行自动类型推断。

  • 运行 按钮,而不是在必须输入python foo.py的控制台。 - 可以简单地添加

  • 上下文感知帮助 - 当您按时支持(加上它会很好地处理已经存在的对象)从其他类实例化。

  • 嵌入式Python shell - 完整的Python shell集成仅在商业IDE中,但您可以轻松地将shell连接到命令输出窗口,为 python -i 添加工具箱配方。

  • 内置调试器<​​/ em> - 不幸的是(但上面推荐的很多轻量级IDE都没有) - 这只是在商业Komodo IDE中。我建议使用 Winpdb 和Komo一起编辑开发 - 根据我的经验,它比Komodo IDE调试器(以及许多其他调试器)更快。这是否与高中生一起飞行将是个问题。

  • 无用的crud剥离 - Komodo显然有更多东西在其中IDLE因此取决于你如何看到这个。可以关闭自动完成功能。

  • 对于那些无法运行Eclipse等强大IDE的旧PC的孩子来说轻量级 - 这也可能是一次垮台 - 我会说Komodo不如Eclipse那么健壮。

  • Open source and free.
  • Cross platform (Windows and Linux, also Mac) ― built on XULRunner.
  • Standard features: syntax highlighting, auto-indent, etc. ― Komodo has the best Python auto-completion I've seen; they'll do automatic type inference from variable assignments.
  • Run button, rather than console where you have to type "python foo.py". ― Can be simply added.
  • Context-aware help ― supported when you press ( plus it will do this nicely on objects that have been instantiated from other classes.
  • Embedded Python shell ― The full Python shell integration is only in the commercial IDE, but you can easily hook up a shell into a command output window by adding a toolbox recipe for python -i.
  • Built-in debugger ― Unfortunately not (but neither do lots of the light-weight IDEs recommended above) ― this is only in the commercial Komodo IDE. I'd recommend using Winpdb alongside Komodo Edit for development ― it's faster than the Komodo IDE debugger (and lots of other debuggers) in my experience. Whether this'll fly with high school students would be the question.
  • Useless crud stripped ― Komodo's clearly got more stuff in it that IDLE so it depends how you see this. Auto-completion can be turned off.
  • Lightweight for kids who go home to old PCs unable to run beefy IDEs such as Eclipse ― This may also be a downfall ― I'd say Komodo is less beefy than Eclipse though.

需要考虑的额外事项:


  • Komodo非常擅长网页开发:它支持在HTML等嵌入式CSS中提供良好的语法高亮和代码完成...

  • 支持扩展(与Firefox一样,加上扩展可以用Python编写) - 如果你需要对这些课程的UI等进行一些调整。

  • Komodo is great at web development: it supports nice syntax highlighting and code completion on embedded CSS inside HTML etc…
  • Support for extensions (along the same lines as Firefox, plus the extensions can be written in Python) ― this could be useful if you need some tweaks to the UI etc for the courses.

这篇关于用于教学的Python 3 IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆