Scientific Python in GX-TXT
by Giux 60 articles last on November 20, 2026 0 comments
Learn scientific Python in GX-TXT, from your first script in the Python Viewer to a reproducible project with NumPy, Datasets, numerical methods, plots and uncertainty analysis.
The course includes 60 lessons in ten modules. The examples and exercises use the Python Viewer and the GX-TXT public APIs. In the final module, you will document the data, methods and results of a complete analysis.
Module 1 · Python Foundations and Getting Started with GX-TXT
Open the Python Viewer, write your first script and run it in the Script Runner with a Session open. Work with values, strings, collections and exceptions as you learn to call the GX-TXT public client.
Module 2 · Control Flow, Functions and Parameters
Use conditions and loops to control program flow. Write reusable functions and pass typed parameters to scripts from the Script Runner.
Module 3 · Scientific Data Structures, NumPy and Managed Files
Use NumPy arrays to organize and select scientific data. Work with numeric types, precision, masks and units, and manage output files in GX-TXT.
Module 4 · Canonical Datasets: Reading, Schema, Metadata and Publication
Identify a Dataset in the catalog and inspect its variables, schema and units. Read records in chunks and publish a derived series using the GX-TXT APIs.
Module 5 · Numerical Methods with Python and Public APIs
Apply interpolation, regression and optimization with Python and the GX-TXT numerical APIs. Find roots and integrate ordinary differential equations.
Module 6 · Scientific Visualization and Plot API v4
Use PlotSpec and Plot API v4 to turn Session Datasets into scientific plots. Configure axes, units, series, legends, panels and annotations.
Module 7 · Sessions, Parameters, Transformations and Traceability
Connect parameters, Workspaces, notes and transformations to your results. Monitor Jobs and record the information needed to repeat an analysis.
Module 8 · Statistics, Uncertainty, Regression and Curve Fitter
Analyze synthetic data with descriptive statistics and propagate uncertainty. Compare models in Curve Fitter and check residuals before interpreting your results.
Module 9 · Python Projects, Maintainable Code, Debugging and Parallelism
Organize scripts into Python projects, split code into modules and verify behavior with the debugger and tests. Use generators and parallel processing when they fit the workload.
Module 10 · An Integrated Scientific Project and Preparing for Publication
Complete a study with synthetic data. Define the question, prepare the Datasets, apply numerical methods and document your results and uncertainties in a reproducible Session.
Project log 60
- Nov 20, 2026 Your First Python Script in GX-TXT Write and run your first Python script in GX-TXT. Learn to use print and import, save code in the Session, and read the Script…
- Nov 20, 2026 Strings, Unicode and Scientific Formatting Use Python strings, Unicode and f-strings to format values and units in a readable scientific report generated in GX-TXT.
- Nov 20, 2026 Variables, Scalar Types and Physical Measurements Distinguish integers, floats and booleans in Python. Calculate an acquisition duration from the sample count and sampling interval in GX-TXT.
- Nov 20, 2026 Dictionaries, Structured Data and Introspection Organize data with Python dictionaries, inspect a GX-TXT API descriptor, and read optional fields safely with get.
- Nov 20, 2026 Lists, Tuples, Indices and Slicing Work with Python lists, tuples, indices and slices. Use a small set of synthetic readings and inspect available GX-TXT APIs.
- Nov 20, 2026 Exceptions and Safe API Calls Use Python exceptions to handle unavailable APIs in GX-TXT. See a controlled example of raising, catching and reporting an error.
- Nov 20, 2026 If, Elif, Else and Execution Requirements Use if, elif and else to control a Python script. Check an API version and operation before using it in the GX-TXT Script Runner.
- Nov 20, 2026 Comparisons, Booleans and Capabilities Compare values with Python and combine boolean conditions. Check GX-TXT capabilities and the number of available samples.
- Nov 20, 2026 While Loops, Counters and Chunked Reads Use a while loop with a counter and stopping condition to read a GX-TXT Dataset in chunks.
- Nov 20, 2026 For Loops, Enumerate and the Dataset Catalog Use for, range and enumerate to iterate through sequences. Publish a synthetic series and list Datasets in a GX-TXT Session.
- Nov 20, 2026 Functions, Arguments and Return Values Write reusable Python functions that accept Dataset descriptors and return summaries, including when some fields are missing.
- Nov 20, 2026 Typed Parameters and the GX-TXT Runner Declare typed script parameters in GX-TXT and change values in the Script Runner between executions.
- Nov 20, 2026 Array Indexing and Slicing Select rows and columns with NumPy indices and slices while preserving the relationship between time and measurements.
- Nov 20, 2026 NumPy Arrays, Dtype and Shape Read a GX-TXT Dataset as a NumPy array. Inspect its dimensions, shape and data type before using the values.
- Nov 20, 2026 Vectorization, Broadcasting and Units Convert a synthetic signal from millivolts to volts with NumPy, and distinguish vectorization, broadcasting and affine unit conversions.
- Nov 20, 2026 Boolean Masks and Data Selection Use NumPy boolean masks to select scientific data. Apply explicit criteria to a synthetic series in the GX-TXT Script Runner.
- Nov 20, 2026 Pathlib, Context Managers and Managed Output Write a CSV with pathlib and a context manager, then publish the managed output from a Python script in GX-TXT.
- Nov 20, 2026 Precision, Aggregation and Basic Statistics Calculate means, variances and standard deviations in NumPy. Compare population and sample statistics on a synthetic GX-TXT Dataset.
- Nov 20, 2026 Variables, Schemas and Scientific Units Read Dataset variable identifiers, data types and scientific units through the public GX-TXT API before using the values.
- Nov 20, 2026 The Dataset Catalog and Stable Identity Find a Dataset by its stable identifier in the GX-TXT catalog and inspect its descriptor from Python.
- Nov 20, 2026 Multidimensional Datasets and Hyperslabs Publish a synthetic matrix in GX-TXT, then read a rectangular hyperslab by specifying its starting position and size.
- Nov 20, 2026 Progressive Reading and Row Handling Read a scientific Dataset progressively, check row counts, and keep time and signal values in order.
- Nov 20, 2026 Structured Writers and Transactions Use the GX-TXT structured writer to publish data and understand what happens when a transaction is canceled.
- Nov 20, 2026 Publishing a Derived Series Create a derived series from a source Dataset and verify the publication by reading the derived values back.
- Nov 20, 2026 Interpolation and Numerical Sampling Interpolate a synthetic signal at new sampling times with the GX-TXT numerical API and check the estimates against reference values.
- Nov 20, 2026 Numerical APIs and Array Algebra Compare matrix calculations in NumPy with the GX-TXT numerical service. Check shapes, transport and agreement between results.
- Nov 20, 2026 Functions as Objects and Nonlinear Fitting Pass a Python function as a callback to the GX-TXT numerical API and fit a synthetic exponential decay.
- Nov 20, 2026 Linear Regression and Least Squares Estimate a slope and intercept with least squares in GX-TXT. Use Python to retrieve the parameters and check the residuals.
- Nov 20, 2026 Root Finding and Optimization Find a root and a minimum with GX-TXT numerical APIs. Interpret convergence, residuals, brackets and tolerances.
- Nov 20, 2026 Differential Equations and ODE Callbacks Integrate an ordinary differential equation using a Python callback in GX-TXT and compare a synthetic decay with its analytical solution.
- Nov 20, 2026 Data, PlotSpec and Scientific Plotting Connect Dataset variables to a PlotSpec and validate the references before plotting a synthetic series with the GX-TXT Plot API.
- Nov 20, 2026 The First 2D Curve in the GX-TXT Viewer Create a persistent 2D plot from a Session Dataset and visualize time and a synthetic signal in the GX-TXT Viewer.
- Nov 20, 2026 Axes, Units, Scales and Titles Configure axis titles, units, scales and limits with the GX-TXT Plot API to make a synthetic signal plot easier to read.
- Nov 20, 2026 Multiple Series, Styles and Legends Plot two synthetic series together in GX-TXT and use styles, units and a legend to compare them.
- Nov 20, 2026 Multiple Panels and a Shared X-Axis Build a GX-TXT figure with multiple panels and a shared time axis for coordinated comparisons of synthetic data.
- Nov 20, 2026 Annotations and Plot Presentation Annotate a specific point on a GX-TXT plot so readers can identify the value and understand its context.
- Nov 20, 2026 Advanced Parameters and Model Validation Validate typed parameters and compare two configurations of a synthetic sampling model in the GX-TXT Script Runner.
- Nov 20, 2026 Sessions, Workspaces and Scientific Notes Read Session information, list Workspaces and save a scientific note through the GX-TXT public APIs.
- Nov 20, 2026 Running a Transformation and Tracking Provenance Run a Dataset transformation in GX-TXT, verify the resulting values against their source and inspect provenance.
- Nov 20, 2026 Dataset Transformations: Description and Planning Check a GX-TXT Dataset transformation, build its execution plan and inspect the expected variables and units.
- Nov 20, 2026 Output, Saving and Verified Repeatability Use a fixed random seed, a Dataset identifier and a fingerprint to check whether a GX-TXT script produces repeatable results.
- Nov 20, 2026 Job Progress, Cancellation and Limits Report Job progress and understand cancellation and resource limits while processing a synthetic series in GX-TXT.
- Nov 20, 2026 Descriptive Statistics with Numerical APIs Compare descriptive statistics and quantiles from the GX-TXT numerical API and NumPy, including how to interpret units.
- Nov 20, 2026 Uncertainty, Weights and Propagation Compute a weighted mean and propagate the standard uncertainty of a sum. See how covariance affects the result in GX-TXT.
- Nov 20, 2026 Hypothesis Testing, Bootstrap and Inference Limits Compare means using a hypothesis test and a bootstrap interval. Interpret the p-value and the limits of inference on synthetic data.
- Nov 20, 2026 Curve Fitter Models and Results Fit a linear model to synthetic data with GX-TXT Curve Fitter. Inspect parameters, units and residuals.
- Nov 20, 2026 Comparing Models and Residuals Compare linear and quadratic models on the same synthetic points. Use residuals and degrees of freedom to assess the fit.
- Nov 20, 2026 Statistical Interpretation and Scientific Reporting Write a scientific report that explains the Dataset, fitted parameters, residuals and limitations of a GX-TXT analysis.
- Nov 20, 2026 Script Projects and Importing Local Modules Organize Python scripts into a GX-TXT Script Project that imports a local module and runs from the project Runner.
- Nov 20, 2026 Type Hints, Dataclasses and Domain Objects Use Python type hints and a dataclass to represent a GX-TXT Dataset reference and validate inputs.
- Nov 20, 2026 Exceptions, Logging and Code Quality Validate inputs, handle Python exceptions and use logging to explain what happened during a GX-TXT Job.
- Nov 20, 2026 Iterators, Generators and Scientific Streaming Use a Python generator to read a GX-TXT Dataset in chunks, close the stream and calculate a mean without loading the whole table.
- Nov 20, 2026 GUI Debugging and Project Tests Use the GX-TXT GUI debugger to inspect a helper function and run tests for a Python project.
- Nov 20, 2026 Controlled Parallelism and Resource Policy Check the GX-TXT resource policy before starting workers and use serial execution when only one worker is permitted.
- Nov 20, 2026 Scientific Question, Model and Experimental Plan Define a reproducible protocol for two synthetic decays. Record the scientific question, parameters and noise model in GX-TXT.
- Nov 20, 2026 Dataset Generation and Native Publication Generate two synthetic decay series and publish ideal signals, noisy observations and uncertainties as GX-TXT Datasets.
- Nov 20, 2026 Fitting, Uncertainties and Residual Diagnostics Fit two synthetic decay signals, compare estimated parameters and uncertainties, and inspect residual diagnostics in GX-TXT.
- Nov 20, 2026 Reproducible Preprocessing and Numerical Methods Prepare the Datasets, validate the selected variables and calculate interpolated estimates in a reproducible GX-TXT workflow.
- Nov 20, 2026 Reproducibility and preparation for publication We conclude the synthetic study by checking that the published Datasets match the protocol and by collecting the materials needed to explain and repeat…
- Nov 20, 2026 Plots, Session and integrated report We visualize together the synthetic data and the curves obtained from the fits. The figure makes the two conditions comparable; the numerical report from…