Interactive widgets to construct data analysis notebooks for Mascope
Project description
Mascope Jupyter Widgets
This repository contains interactive widgets to construct data analysis notebooks for Mascope, utilizing Mascope SDK to fetch data from the server.
All developer docs are in this document:
- 🚀 Getting started - installation / configuration / authentication
- 📚 Modules - filtering / mascope_data / mass_defect / timeseries
Getting started
Installation
This project uses uv for dependency management, and therefore it is a prerequisite for installation. Install uv following their instructions.
Once installed, open a terminal, navigate into the repository directory mascope-jupyter-widgets/ and run
uv sync
Environment configuration
NOTE: The .env file needs to be placed in the directory from which you launch the notebooks
To load data from the Mascope database, you will need to configure the URL as well as a personal access token.
- In the source code directory, copy
.env.exampleto a new file named.envin the same location. - Generate and copy a Jupyter Notebooks access token in your Mascope account management.
- Replace placeholders in the
.envfile with the URL of your Mascope instance and your personal access token:
MASCOPE_ACCESS_TOKEN=p3R5oN4l4cC35s70Ken
MASCOPE_URL="https://org.mascope.app"
Note: The .env file is gitignored to prevent accidental commit of personal access tokens. Never commit your actual token to the repository.
Modules
The repository is structured into modules as follows:
mascope-jupyter-widgets/ Repository root
mascope-jupyter-widgets/ Package directory
filtering/ Dataset filtering module
mascope_data/ Data loading module
mass_defect/ Mass defect analysis module
timeseries/ Timeseries analysis module
filtering/
Module providing tools to select a subset of the loaded dataset based on various filtering criteria.
Names exported to package namespace:
-
FilteringWidgetInteractive notebook widget to filter a subset of the data currently loaded into
MascopeDataWrapper. With the filters applied, all the data propertites exposed byMascopeDataWrapperreturn the filtered data.
mascope_data/
Module providing tools to load and interface with Mascope data.
Names exported to package namespace:
-
MascopeDataBrowserInteractive notebook widget to browse and load data from Mascope server.
-
MascopeDataWrapperA class providing a standardized interface to the data loaded from Mascope, consisting of various pandas dataframes exposed as class properties. An instance of the data wrapper is used as the input to analysis modules.
mass_defect/
Module providing tools to perform mass defect analysis on the loaded dataset.
Names exported to package namespace:
-
MassDefectWidgetInteractive notebook widget to visualize the dataset based on mass defect, providing various ways of scaling and normalization.
spectrum/
Module providing tools to perform spectrum analysis on the loaded dataset.
Names exported to package namespace:
-
SpectrumWidgetInteractive notebook widget to visualize the dataset spectrums.
timeseries/
Module providing tools to perform timeseries analysis on the loaded dataset.
Names exported to package namespace:
-
TimeSeriesWidgetInteractive notebook widget to visualize the dataset based on time, providing various ways of aggregation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mascope_jupyter_widgets-0.1.5.tar.gz.
File metadata
- Download URL: mascope_jupyter_widgets-0.1.5.tar.gz
- Upload date:
- Size: 79.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0c6fcfc1e3c5cf0c15b82cf23a418a32c3ddbad7cfb3e4c5946bf09547ebe78
|
|
| MD5 |
186d06cb216af8a088c1ab96a55dd5e6
|
|
| BLAKE2b-256 |
d8c57b4b55db4ae2437ca540b3aa512c5039eef24d885849ef70ad4a33cf685e
|
File details
Details for the file mascope_jupyter_widgets-0.1.5-py3-none-any.whl.
File metadata
- Download URL: mascope_jupyter_widgets-0.1.5-py3-none-any.whl
- Upload date:
- Size: 101.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b830ece558e4b29c4b98c2cceda225aff9402b8c6df2a37bd4746097dce733a3
|
|
| MD5 |
a9ad13d139972a65b93eec646f2ada67
|
|
| BLAKE2b-256 |
f5f2af900bc1f5e7348f5660c91ff5d040f9e97cb76daadb1e4212eee7725239
|