Problems passing variables from one script to another

23 views
Skip to first unread message

Manuel David Soto

unread,
Jun 4, 2020, 11:01:52 PM6/4/20
to spyder
Hello everyone,

Is my first time here.

I'm having problems running my scripts since I migrate to Spyder 4.1.2 / Windows 10.

I used to pass variables from one script to another without problems, but now the program is telling me that a particular variable is not defined even if I see it in the Variable explorer window. After loading and defining the variables in a first script I have to run the cell several times to get the variable recognized.

Is it any setting that I'm missing? Before the execution was smooth from one script to another, Should I consider going back to a previous version?

Regards

M. David Soto


Carlos Córdoba

unread,
Jun 4, 2020, 11:11:22 PM6/4/20
to spyd...@googlegroups.com
Hi,

Please this post for the solution:

https://stackoverflow.com/questions/59271717/override-global-variable-inside-function-not-working-with-spyder-4


Cheers,
Carlos

El 2/06/20 a las 4:16 a. m., Manuel David Soto escribió:
--
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 spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/9187ea7f-fa24-4baf-8fcd-dde4e8a73ae0%40googlegroups.com.

Bibeesh Y S

unread,
Jun 8, 2020, 10:41:02 AM6/8/20
to spyder
Hi,

Enable "Run in console's namespace instead of an empty one"   from RUN>Run Configuration per file> 

This will help to get the variable recognized.

Regards
Bibeesh

Manuel David Soto

unread,
Jun 14, 2020, 8:02:18 PM6/14/20
to spyder
Carlos,

Muchas gracias

Ahora si funciona bien

Saludos

David


On Friday, June 5, 2020 at 5:11:22 AM UTC+2, Carlos Córdoba wrote:
Hi,

Please this post for the solution:

https://stackoverflow.com/questions/59271717/override-global-variable-inside-function-not-working-with-spyder-4


Cheers,
Carlos

El 2/06/20 a las 4:16 a. m., Manuel David Soto escribió:
Hello everyone,

Is my first time here.

I'm having problems running my scripts since I migrate to Spyder 4.1.2 / Windows 10.

I used to pass variables from one script to another without problems, but now the program is telling me that a particular variable is not defined even if I see it in the Variable explorer window. After loading and defining the variables in a first script I have to run the cell several times to get the variable recognized.

Is it any setting that I'm missing? Before the execution was smooth from one script to another, Should I consider going back to a previous version?

Regards

M. David Soto


--
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 spyd...@googlegroups.com.

Manuel David Soto

unread,
Jun 14, 2020, 8:02:18 PM6/14/20
to spyder
Bibeesh,

Thanks you , now is working OK

My best regards

David
Reply all
Reply to author
Forward
0 new messages