I'm using nbconvert
to execute an iPython notebook via the command line (as in this answer):
ipython nbconvert --to=html --ExecutePreprocessor.enabled=True RunMe.ipynb
Is it possible to pass command line arguments to be accessed from within the notebook (like sys.argv
)?
This would let me reuse the same notebook in different contexts.