Analyze with ipynb
Given a folder with .h5 files, use this feature to analyze data quickly. It provides convenient loading functions and an overview Jupyter notebook.
Recommendation
This feature requires Jupyter Notebook to be installed. It works best when launching an .ipynb
file (e.g., by double-clicking) opens a Jupyter editor. One recommended way:
- Install Visual Studio Code.
- Install extensions:
- Pylance (Microsoft)
- Jupyter (Microsoft)
Trigger feature
There are two ways to start this feature:
From ScopeFoundry: Advanced -> Analyze with ipynb. The folder acted upon is the one defined in the
app/save_dir
settings (bottom left panel).Using ScopeFoundry tools (install instructions here):
cd "to/your_folder_with_data"
Potentially (
conda activate scopefoundry
):python -m ScopeFoundry.tools
Then click the corresponding button on the Welcome tab.
Benefit
This feature generates:
- An
h5_data_loaders.py
file containing convenience methods based on the.h5
file content. - An
overview.ipynb
file where you can start your analysis.
In the notebook, the top two cells are generated:
- Cell 1: Imports of data loaders.
- Cell 2: Lists paths to each
.h5
file and how it can be loaded.