Source From Here
QuestionI am working on a Python Notebook and I would like that large input code [input] pack into a [* .PY] files and call this file from the notebook.
HowTo
In the %run magic documentation you can find:
Therefore, supplying -i does the trick:
- %run -i 'script.py'
沒有留言:
張貼留言