loading program's global variables in ipython
perfreem at gmail.com
Sun Mar 22 19:01:47 CET 2009
i have a file that declares some global variables, e.g.
myglobal1 = 'string'
myglobal2 = 5
and then some functions. i run it using ipython as follows:
 %run myfile.py
i notice then that myglobal1 and myglobal2 are not imported into
python's interactive namespace. i'd like them too -- how can i do
(note my file does not contain a __name__ == '__main__' clause.)
More information about the Python-list