Accessing data saved during notebook run

Vincent Russo 20 Reputation points
2024-04-15T16:01:22.3466667+00:00

I have a notebook instance where I want to save data. I want to be able to save to the same directory in which my notebooks are stored however using, for instance os.listdir(), I am not able to find the file path for which the notebooks are stored.

tl;dr How do I save data to the "My notebooks" directory?

Azure Quantum
Azure Quantum
An Azure service that provides quantum computing and optimization solutions.
71 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,301 Reputation points Microsoft Employee
    2024-05-02T23:13:14.61+00:00

    Hello, @Vincent Russo ! I reached out to the Azure Quantum team and it looks like notebook data is in the associated storage account which you can access using the storage browser. I've included details and instructions below.

    How do I access data that is generated when running a notebook?

    First, you will need to make sure that you have the appropriate access to the resource:

    https://zcusa.951200.xyz/en-us/azure/storage/blobs/authorize-data-operations-portal#permissions-needed-to-access-blob-data

    Once you have confirmed that you have access, you can navigate to the storage account:

    • Go to the workspace overview
    • Select Storage account: <ID>
    • In the left page, select Storage browser
    • Select the File shares card and select azure-quantum-notebooks
    • Drill down through the workspace_ID and each notebook is listed in its own folder.

    Start with the storage account associated with your quantum workspace: User's image

    Navigate to the storage browser, and find your notebook under the file shares:

    User's image


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.