-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
Error when executing argparse in IPython console #3883
Comments
What does |
The
but the following fails:
|
So the solution would be to clear |
That would solve it for me yes. Not sure how easy that is to do in spyder. Note that if I run the code with |
@andfoy, please work on this one. The idea is to clean
in the same way as we evaluate the matplotlib magic. |
@ccordoba12 your answer solve my problem , thank you! |
You can also try args = parser.parse_args(args=[]) |
i have the same error how you fix it? |
The following code snippet fails when it is executed with
F9
or in cell mode.The reason is the arguments passed to the ipython console, in particular the
-f
:What steps will reproduce the problem?
The code snippet does work when executed in the python console. It also worked with previous versions of spyder. The issue is probably the same as #1557.
Versions and main components
The text was updated successfully, but these errors were encountered: