#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Location
    EU, USA
    Posts
    25
    Rep Power
    0

    IDE to run without saving


    Is there an IDE that will run the app without auto-saving the source files?

    Isn't it normal and desirable to experiment and try different things and close the session without saving anything?

    I'm on python again this morning because my app is not responding to the Numpad Enter key, so I tried to no avail, and every time Spyder IDE took the prerogative to save my source files.

    Code:
    .bind('<Return>','<NumpadEnter>', OnChoice)
    .bind('<Return>','<Numpad-Enter>', OnChoice)
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,852
    Rep Power
    481
    We have the source to idle, and could modify it a little bit to make a sort of simple test mode that hides the irritating save-file step.

    emacs has a "send-buffer-to-python" command.

    I would sometimes use "run without saving". The python interpreter requires source to have a stricter format when it comes through stdin. I think there would still be a temporary file involved. And, since you don't know the name of this file you wouldn't be able to import from it.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Location
    EU, USA
    Posts
    25
    Rep Power
    0
    Originally Posted by b49P23TIvg
    We have the source to idle, and could modify it a little bit to make a sort of simple test mode that hides the irritating save-file step.

    emacs has a "send-buffer-to-python" command.

    I would sometimes use "run without saving". The python interpreter requires source to have a stricter format when it comes through stdin. I think there would still be a temporary file involved. And, since you don't know the name of this file you wouldn't be able to import from it.
    Thank you. Yes, the IDE can create a temporary file that is deleted when your app closes. That would be a great feature! Emacs I couldn't use at all, I kept Spyder because it claims that it can show you the stack and your variables at run time.

    What is the keyword for <Numpad-Enter>? I'm googling to no avail.
  6. #4
  7. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,852
    Rep Power
    481
    If it were my project I'd try plain old
    <Enter>
    [code]Code tags[/code] are essential for python code and Makefiles!
  8. #5
  9. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    610
    Rep Power
    65
    If you use the Windows OS, you can use the PyScripter IDE
    it allows you to run code from a buffer.

    Another IDE is VIdle that comes with VPython. It is an improved version of Idle.
    Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25

IMN logo majestic logo threadwatch logo seochat tools logo