You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run magic %run "r:\abc\abc.py"
If file not exist, the error msg should be File 'r:\\abc\\abc.py' not found.
However, sometimes it mess up the path...
For example %run "r:\abc-m\abc.py"
Error msg File '\'"r:\\abc-m\\abc.py"\'.py' not found.
Insight
The function para parameter_s seem to get mess up by following branch if '-m' in parameter_s and '--' not in parameter_s:
Let say parameter_s = "r:\abc-m\abc.py", but since it contain "-m" in the path, it will change to "'r:\abc-m\abc.py'" after above if clause.
strange error message
%run "r:\abc\abc.py"
If file not exist, the error msg should be File
'r:\\abc\\abc.py'
not found.For example
%run "r:\abc-m\abc.py"
Error msg File
'\'"r:\\abc-m\\abc.py"\'.py'
not found.Insight
The function para parameter_s seem to get mess up by following branch
if '-m' in parameter_s and '--' not in parameter_s:
Let say parameter_s = "r:\abc-m\abc.py", but since it contain "-m" in the path, it will change to "'r:\abc-m\abc.py'" after above if clause.
https://github.com/ipython/ipython/blob/master/IPython/core/magics/execution.py : 655
The text was updated successfully, but these errors were encountered: