MGnify code examples

Python and R examples for MGnify API v2, replacing the hosted notebooks.
Author
Published

September 23, 2026

Edit and run small API v2 examples directly in your browser:

For the MGnipy Python client, see the introduction and demo.

The browser pages use WebAssembly and do not start a server-side notebook kernel. They support study metadata, paginated analyses, analysis detail and a small result table. Open the introductory Python or R page with ?study=MGYS00010393 to initialise a specific study. Browser edits and variables disappear when you reload the page.

The historical notebooks are retained in the source repository as non-functional historical material. For larger analyses, use local Python and the MGnipy documentation.