.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/load_test_cloud.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note You can download :ref:`below ` the full example code. and run it online in `Codespaces `__ .. image:: https://github.com/codespaces/badge.svg :target: https://codespaces.new/spark-cleantech-l3/sda-copy?quickstart=1 --- .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_load_test_cloud.py: Load Experiment Test data from the Cloud. ========================================= This example shows :py:func:`sda.api.load.load_test` with ``source="cloud"``: the workbook is fetched from SharePoint on demand (cached locally after the first download). **Prerequisites** - Microsoft Graph authentication (interactive browser sign-in on first use, or ``AZURE_*`` environment variables in CI). - Test ``T364`` must exist in your configured SharePoint layout (see project docs and ``~/sda.json`` for local sync paths vs. graph discovery). To ignore the cache and re-download from SharePoint, pass ``force_refresh=True``. .. GENERATED FROM PYTHON SOURCE LINES 21-23 .. code-block:: Python from sda.api import load_test .. GENERATED FROM PYTHON SOURCE LINES 24-30 .. code-block:: Python print("=== Loading T364 from SharePoint (Microsoft Graph) ===") df = load_test("T364", source="cloud") print(f"Data shape: {df.shape}") print(f"Columns: {list(df.columns)}") print(df.head()) .. _sphx_glr_download_auto_examples_load_test_cloud.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: load_test_cloud.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: load_test_cloud.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: load_test_cloud.zip `