We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Say I define several variables in an IPython session:
In [4]: a = 3 ... In [6]: c= 10
And say I have a Python file called foo.py
foo.py
with the following contents:
print "Hello", a print "World", c
Whenever I try
In [10]: run foo.py
I get undefined a
because the script is not receiving the variables in the workspace. How can I pass these variables to the script without changing the script?
The text was updated successfully, but these errors were encountered:
run starts in a clean namespace by default. You want %run -i foo.py.
%run -i foo.py
Sorry, something went wrong.
No branches or pull requests
Say I define several variables in an IPython session:
And say I have a Python file called
foo.py
with the following contents:
Whenever I try
I get undefined a
because the script is not receiving the variables in the workspace. How can I pass these variables to the script without changing the script?
The text was updated successfully, but these errors were encountered: