Ipython raw_input可以解决吗? [英] Ipython raw_input work around?

查看:165
本文介绍了Ipython raw_input可以解决吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个想要接受Ipython笔记本不能做的raw_input的Python程序。 (已知限制)

I'm running a Python program that wants to accept raw_input which Ipython notebook does not do. (a known limitation)

实现该功能的推荐方法是什么? (解决?)我想做的是能够运行程序,接受输入和响应..(将根据检索到的信息确定选择),并提示用户ID和密码信息..

What is a recommended way to achieve the functionality? (work around?) What I'd like to do is to be able to run the program, accept input and respond..(will be choices determined based on information retrieved), and also prompting for user id and password info..

当然,我想对现有代码进行尽可能少的暴力。

Of course I'd like to do as little violence to the existing code as possible.

我找到了IPython Ipython文档中的.utils.io.raw_input_ext(prompt ='',ps2 ='...'),但它调用raw_input并获得相同的未实现错误

I found IPython.utils.io.raw_input_ext(prompt='', ps2='... ') in the Ipython docs but it calls raw_input and gets the same not implemented error

推荐答案

IPython的最后开发版本现在支持笔记本中的raw_input。 (自2013年5月开始为未来的读者)

Last developement version of IPython now support raw_input in notebook. (since beginning of may 2013 for future reader)

这篇关于Ipython raw_input可以解决吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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