how can I store my cell output as a text file in my local drive?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 10:08 PM
I want to store the output of my cell as a text file in my local hard drive.
I'm getting the json output and I need that json in my local drive as a text file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 10:58 PM
Hi @InquisitiveGeek ,
You can do this following below approach:
https://learn.microsoft.com/en-us/azure/databricks/notebooks/notebook-outputs#download-results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 12:21 AM
This is for tabular result but in my case the output is a JSON String.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 12:33 AM
So maybe as the last step in your notebook catch JSON output to variable and use python code to save it, for example to dbfs, and then download from dbfs UI