如何在每天的特定时间不断地运行 Google Colaboratory?

How to constantly run Google Colaboratory at a specific time every day?

我最近在 Google Colaboratory 上构建了一个 Python 程序,该程序 运行 从站点检索数据。因为我想根据一个月的数据创建一个图表,所以我想每天检索数据。有什么方法可以在 Google Colab 上 运行 这个,因为我的朋友也想在某个时候修复代码?如果没有,有没有办法在 Windows 10 上执行此操作? 提前谢谢你。

Colab 目前不支持此功能。

对于 Windows 10,我认为您正在寻找 Task Scheduler

现在我创建了 colabctl

您可以使用 colabctl 从 CLI 运行 您的 Google Colaboratory notebooks,如果您愿意,可以按计划进行。只需将 colabctl.py 添加到 cron 作业即可。

注意:如果你想在无头服务器上运行它,你首先需要从你的桌面运行它一次来保存你的将 cookie 登录到 pickle 文件,然后将该 pickle 与 colabctl 一起上传到您的服务器。