Thanks. Does the content of unsaved scripts not exist somewhere on the 
disk, so that spyder could load it as a file? I don't know much about these 
things, so I can't really offer help with this, but I think it would be a 
useful change if it were possible...

Cheers,

Peter

On Tuesday, March 14, 2017 at 3:26:09 PM UTC, Carlos Córdoba wrote:
>
> Sorry, I forgot that to run a file with F5, Spyder needs to load the 
> content of a file. So if you don't save it, it can't do that.
>
> If you want to run something without saving it, you can use cells instead.
>
>
> Cheers,
> Carlos
>
> El 14/03/17 a las 09:33, Peter Watson escribió:
>
> I should not have been so quick to post that reply - I just tried it, but 
> I still cannot run code without saving it first. This is also the case in 
> scripts that have been loaded from a file, then modified in the editor 
> without saving. 
>
> Cheers,
>
> Peter
>
> On Tuesday, March 14, 2017 at 2:18:32 PM UTC, Carlos Córdoba wrote: 
>>
>> Hi,
>>
>> You can deactivate this behavior by going to
>>
>> Preferences > Editor > Advanced settings > Run
>>
>> and turning off this option 
>>
>> Save all files before running script
>>
>> Cheers,
>> Carlos
>>
>> El 14/03/17 a las 06:07, Peter Watson escribió:
>>
>> Hello, 
>>
>> Sometimes I want to just write out a few lines of code and execute them, 
>> without saving them to a file. Spyder insists that I save before running 
>> the file - would it be possible to let it run what's in the editor without 
>> saving i.e. do the equivalent of selecting all the lines in a file and 
>> running the selection?
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "spyder" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/spyderlib.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> ​
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to