Skip to content
Advertisement

How to use schedule library to schedule script in Python

JavaScript

I am trying to use import schedule library in Jupiter notebook as the Cron and Task scheduler in Windows doesn’t work for me. I am trying to execute this code every day at 8am. Can some one help define the job, thank you so much!

Advertisement

Answer

this one should work

JavaScript

And instead of shedule library, i using here just own code for waiting on clock (also I wrote that in “asynchronous” way, but you can also change function do_that to be sync and then at bottom, instead of asyncio.run(do_that()), just “do_that()”)

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement