Issue
Running a Python script in Jupyter Notebook, with arguments passing
a = 3
b = 5
!ipython two_digits.py a b
Why this is not working ? How to pass parameters from variables ?
Solution
I think you can pass Python variable to IPython command using curly braces or dollar sign prefix
a = 3
b = 5
!ipython two_digits.py {a} {b}
or
!ipython two_digits.py $a $b
Answered By - tax evader
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.