Passing command line arguments to argv in jupyter/ipython notebook

前端 未结 8 1294
-上瘾入骨i
-上瘾入骨i 2020-11-28 09:34

I\'m wondering if it\'s possible to populate sys.argv (or some other structure) with command line arguments in a jupyter/ipython notebook, similar to how it\'s

8条回答
  •  一向
    一向 (楼主)
    2020-11-28 10:05

    A workaround is to make the jupyter notebook read the arguments from a file. From the command line, modify the file and run the notebook.

提交回复
热议问题