Passing command line arguments to argv in jupyter/ipython notebook

前端 未结 8 1306
-上瘾入骨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:25

    I think this Gist may help you : https://gist.github.com/gbishop/acf40b86a9bca2d571fa

    This is an attempt at a simple argument parser for mostly key=value pairs that can be used both on the command line and in IPython notebooks. It support query parameters in notebook URLs and a Run command for notebooks.

提交回复
热议问题