【发布时间】:2021-08-17 09:33:24
【问题描述】:
我在内部云上使用 Jupyter 笔记本。并且有一个脚本需要每天运行。有没有办法让它每天自动运行?
我在某处读到这可以使用 Cron 完成,所以我尝试安装以下内容,但每次它都会出现以下错误:
!pip install jupyterlab-scheduler
ERROR: Could not find a version that satisfies the requirement jupyterlab-scheduler (from versions: none)
ERROR: No matching distribution found for jupyterlab-scheduler
!pip install jupyter-cron
ERROR: Could not find a version that satisfies the requirement jupyter-cron (from versions: none)
ERROR: No matching distribution found for jupyter-cron
任何帮助将不胜感激。 谢谢!
【问题讨论】:
-
是否有任何原因不能将 Jupyter 笔记本转换为可以直接从 cron 启动的常规 Python 脚本,无需特殊安装?
-
你可以试试 simple_scheduler。它易于使用 - [示例] (github.com/Vernal-Inertia/simple_scheduler/tree/main/examples)
标签: python cron cloud jupyter scheduler