【问题标题】:jupyter nbconvert execute to html cron job not workingjupyter nbconvert 执行到 html cron 作业不起作用
【发布时间】:2019-03-01 02:53:45
【问题描述】:

我有这个 .sh 安排在 cron (ubuntu 18) 中:

#!/bin/sh
wget -O x/doc1.csv  https://www.x.com
wget -O x/doc2.csv  https://www.y.com
jupyter nbconvert --execute --to html x/notebook.ipynb

前两行运行完美,但 jupyter 行没有。如果我在终端中直接使用 ./ 执行 .sh ,它的性能会很好。有什么想法吗?

【问题讨论】:

    标签: cron jupyter execute nbconvert


    【解决方案1】:

    我只是添加了命令的路径,它就起作用了:

    #!/bin/sh
    wget -O x/doc1.csv  https://www.x.com
    wget -O x/doc2.csv  https://www.y.com
    /home/pakin/anaconda3/bin/jupyter nbconvert --execute --to html 
    x/notebook.ipynb
    

    【讨论】:

      猜你喜欢
      • 2016-01-10
      • 1970-01-01
      • 2015-02-23
      • 2013-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-21
      • 1970-01-01
      相关资源
      最近更新 更多