有可插拔的在线Python控制台吗?
我在想是否已经有某种带有开源代码的在线实时 python 控制台(基于网络)。有谁知道什么吗? 在 Django 管理中拥有控制台确实非常有用(例如在服务器终端上运行 python manage.py shell),因此拥有 django/任何 wsgi 应用程序会很棒,可用于启用基于 Web 的实时控制台访问。
谢谢
I'm thinking if there already is some sort of online live python console (web-based) with open source code available. Anyone know of anything?
It would be really useful to have console in Django admin (like running python manage.py shell on the server's terminal), so it would be great to have django/any wsgi aplication, that can be used to enable web based live console access.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您正在寻找 Werkzug 调试器。
http://werkzeug.pocoo.org/
http://werkzeug.pocoo.org/docs/debug/
它为您的 WSGI 项目提供了一个基于交互式 javascript 的浏览器内调试器,以及许多其他很棒的工具。太棒了。
特别是对于 Django,还有 RunServerPlus,它是 django-extensions 包的一部分。
https://github.com/django-extensions/django-extensions
You're looking for the Werkzug debugger.
http://werkzeug.pocoo.org/
http://werkzeug.pocoo.org/docs/debug/
It's got an interactive javascript based in-browser debugger for your WSGI projects, among many other great tools. Fantastic stuff.
For Django specifically, there's also RunServerPlus, which is part of the django-extensions package.
https://github.com/django-extensions/django-extensions
您应该查看 Python Anywhere。您可以运行 python Web 应用程序,获得 SQL 数据库,并在浏览器中获得 bash shell。
You should check out Python Anywhere. You can run python web apps, you get an SQL database, and you get a bash shell in your browser.
查看来自 Google 的 python shell。顶部有一个源代码链接。将 Django 环境加载到其中可能不是很容易,但我相信这是可能的。
Have a look at python shell from Google. There's a link to source code at the top. Loading Django environment into it might be not very easy but I believe it's possible.
我不确定这是否满足您的愿望,但您可以看看 Chrome 扩展程序:https:// /chrome.google.com/webstore/detail/gdiimmpmdoofmahiningpgabiikimjgcia
I'm not sure if this meets your desire but you might take a look at Chrome extension : https://chrome.google.com/webstore/detail/gdiimmpmdoofmahingpgabiikimjgcia
有一个很棒的网站,名为 Codecademy。它教授 Python、Ruby、Javascript 和 HTML/CSS 的基础知识。
他们还为所教授的每种语言(HTML/CSS 除外)提供在线控制台。此网站是 Codecademy Labs。 Codecademy Labs 有一个可以直接输入的控制台,以及一个在控制台中显示输出的编辑器。我希望这可以帮助您找到您想要的东西!
There is a great website called Codecademy. It teaches the fundamentals of Python, Ruby, Javascript, and HTML/CSS.
They also have online consoles for each of the languages they teach, excluding HTML/CSS. This website is Codecademy Labs. Codecademy Labs has a console you can type directly in, and an editor that displays output in the console. I hope that this helped you find what you were looking for!