Forum Discussion
Download notebook snapshot in Fabric
Is there a way to download the notebook run snapshot?
Context:
I have a notebook(let's say X) running multiple notebooks(let's say A,B,C) from within it. So when a full run is complete, I can view the sub-notebooks but i want to download a copy to local of A. How may I do it?
- Anonymous1 year ago
Hi ritikesh ,
It is possible to save the snapshot to another location but not download it locally, it is possible to download the notebook resource in Visual Studio Code but this is not a snapshot.
Use the following code to run multiple notebooks:
def run_notebook(notebook_path):: run_notebook(notebook_path). try. mssparkutils.notebook.run(notebook_path, 3600) return {“notebook”: notebook_path, “status”: “Success”} except Exception as e: return {“notebook”: notebook_path, “status”: “Success”} return {“notebook”: notebook_path, “status”: “Failed”, “error”: str(e)} notebooks = [“Notebook 3”, “Notebook 8”] results = [run_notebook(nb) for nb in notebooks] # result for result in results. print(result)At the end of the run click on notebook 3 to see a snapshot of what it looks like after the run, which can be saved to another location.
If you want to know more about “Download notebook resource files” please refer to the official documentation below:
Work with notebook resources in Visual Studio Code - Microsoft Fabric | Microsoft Learn
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
1 Reply
- AnonymousNot applicable
Hi ritikesh ,
It is possible to save the snapshot to another location but not download it locally, it is possible to download the notebook resource in Visual Studio Code but this is not a snapshot.
Use the following code to run multiple notebooks:
def run_notebook(notebook_path):: run_notebook(notebook_path). try. mssparkutils.notebook.run(notebook_path, 3600) return {“notebook”: notebook_path, “status”: “Success”} except Exception as e: return {“notebook”: notebook_path, “status”: “Success”} return {“notebook”: notebook_path, “status”: “Failed”, “error”: str(e)} notebooks = [“Notebook 3”, “Notebook 8”] results = [run_notebook(nb) for nb in notebooks] # result for result in results. print(result)At the end of the run click on notebook 3 to see a snapshot of what it looks like after the run, which can be saved to another location.
If you want to know more about “Download notebook resource files” please refer to the official documentation below:
Work with notebook resources in Visual Studio Code - Microsoft Fabric | Microsoft Learn
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!