Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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

Reply
SriThiru
Helper I
Helper I

Download files from Fabric lakehouse to local computer

Hi,

 

Please suggest code to download files from Fabric lakehouse to my local computer. I want to run this code in my fabric notebook.

3 REPLIES 3
Anonymous
Not applicable

Hi @SriThiru ,

May I ask if your problem has been solved. If not you may consider using Python in your Fabric notebook like below:

import requests

file_url = 'https://fabric-lakehouse-url/path/to/your/file'

local_path = 'path/to/save/file'

response = requests.get(file_url)

with open(local_path, 'wb') as file:
    file.write(response.content)

print(f'File downloaded and saved to {local_path}')

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

abm_chris
Advocate I
Advocate I

Have you tried the OneLake app? It works much like OneDrive.

Download Microsoft OneLake file explorer for Windows from Official Microsoft Download Center

Hi @abm_chris ,
Yes I tried the app.
But I want to do this programatically, can you please suggest the code.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.