So, for instance, I'm in an ipython session, and I have a variable,
var = [3,5,6]
defined in the ipython session, that I want to do something with by running a script, e.g.:
# my_script
plot(var)
so I want typing
%run my_script.py
from the interactive session to plot var, as if I had typed:
plot(var)
within the interactive session.
Is this possible? How?
import scriptname(assumingscriptname.py) and then callscriptname.plot(var), or similar.