Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
I have a Python script that I want to automate using Task Scheduler on Windows. The script runs fine when my laptop is on, but I want it to execute daily (including Sundays) even if my laptop is turned off or not in use.Is there any other method that ensures the script runs consistently without needing my laptop to be powered on? Any suggestions or step-by-step guidance would be helpful.
Solved! Go to Solution.
If your code has no local dependecies (i.e. you don't need any data/files from the laptop), you could consider migrating the code to a Fabric notebook which will run Python. You've posted in a Fabric Community Forum so this is the most likely topic of advice here.
There are tonnes of learning resources about notebooks - starting here;
How to use notebooks - Microsoft Fabric | Microsoft Learn
There is a free trial of Fabric available - go beyond that and you'll be into a paid capacity though.
@LB_Team, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
Hi @LB_Team, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
Hi @LB_Team, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
@spencer_sa& @ahmetyilmaz, Thanks for your promt response.
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
First question is; is your Python code local to your laptop or inside a Fabric notebook?
If your code is local, then you'll need some external resource, like renting a server (as @ahmetyilmaz says) or migrating the code to Fabric. This is out of scope for the rest of this reply.
If your code is in a Fabric notebook and you're wanting to schedule the notebook, you can either create a schedule directly within the notebook or you can make the notebook part of a pipeline (using the Notebook activity) and schedule that pipeline.
Example;
I could write a notebook that queries a weather API to get the day's forecast and persist this data in a Fabric table. I could then schedule this to run at 1am to ensure I always had a daily forecast.
If this reply helps, please consider Accepting as a Solution to help others find it more easily.
Python code is local to my laptop.Give me something other than renting a server.
If your code has no local dependecies (i.e. you don't need any data/files from the laptop), you could consider migrating the code to a Fabric notebook which will run Python. You've posted in a Fabric Community Forum so this is the most likely topic of advice here.
There are tonnes of learning resources about notebooks - starting here;
How to use notebooks - Microsoft Fabric | Microsoft Learn
There is a free trial of Fabric available - go beyond that and you'll be into a paid capacity though.
Hi @LB_Team , you can do this by renting a server. This way you don't need to keep your own computer on. You cannot execute commands on your computer when it is off.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.