ioquatix / script-runner

This package will run various script files inside of Atom. It currently supports JavaScript, CoffeeScript, Ruby, and Python. You can add more.
http://atom.io/packages/script-runner
Other
62 stars 23 forks source link

User input on python #41

Closed tiferrei closed 7 years ago

tiferrei commented 9 years ago

Hi, can I use raw_input with this package?

Thanks, Tiferrei

ioquatix commented 9 years ago

Yes this is a good question.

Using raw_input or actually stdin requires some kind of interactivity which we don't support yet, but it is something I've thought about implementing.

The main issue is that user input for a actual tty isn't simple. However, we could make a simple line input box which might be sufficient for most uses?

What exactly are you trying to do?

tiferrei commented 9 years ago

That would be perfect for me for example! I'm a teen but I already did some programming on some iOS apps and Xcode but now I'm learning python at my school and I really got used to Atom, plus I hate the official IDLE. So it would be something really simple but yet I need tu use raw_input. :/

aplaceforallmystuff commented 8 years ago

I'd second this! I'm using Atom / Script Runner for an upcoming programming publication and just realised I've got to switch the readers back over to IDLE to get their code to work for raw_input.

ioquatix commented 8 years ago

I'd love to support raw_input or, input from stdin. Any ideas?

ioquatix commented 8 years ago

Okay so we are going to investigate Terminal.js which allows for stdin to be used.. it won't be until the weekend probably but we will try to make it work soon.

cc @huba

benrob0329 commented 8 years ago

Any news on this?

ioquatix commented 8 years ago

@benrob0329 Honestly I'm not working much on this project any more. It's basically feature complete for my use case. However, I also thought a bit more about it. These days, when I'm doing stuff that requires to execute a script, I normally run a terminal side by side with Atom. It's working really well and does everything I expect. Script runner, and the general concept of running scripts within your editor isn't a bad idea, but I'm not sure it can be improved all that much. It's just better to use a real terminal.

huba commented 8 years ago

So I've worked on this a while ago and now tidied it up (so that it is not completely broken). In PR #52 . I t doesn't look too great yet, but I am open to feedback about how you guys think interactivity should work.

ioquatix commented 7 years ago

With 2.0.0 just released, this now works.