{"id":1098,"date":"2026-09-22T09:04:19","date_gmt":"2026-09-22T07:04:19","guid":{"rendered":"https:\/\/dyna.neel.cnrs.fr\/?page_id=1098"},"modified":"2026-09-22T09:04:19","modified_gmt":"2026-09-22T07:04:19","slug":"dyna-jupyter-notebooks","status":"publish","type":"page","link":"https:\/\/dyna.neel.cnrs.fr\/index.php\/dyna-jupyter-notebooks\/","title":{"rendered":"Dyna Jupyter Notebooks"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gitlab.com\/dynadevgroup\/Dyna\/-\/tree\/main\/examples\/notebooks?ref_type=heads\">Notebooks on GitLab<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These notebooks provide interactive, GUI-independent examples for users who<br>prefer to explore Dyna calculations step by step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Available Notebooks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>01_basic_reflectivity.ipynb<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Builds the default W\/Si sample, runs a Stepanov angle scan, plots the<br>reflectivity, and saves the calculated observables to CSV.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>02_compare_formalisms.ipynb<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Runs the Elzo and Stepanov formalisms on the same magnetic sample, plots the<br>two reflectivity curves, and reports the relative numerical difference.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>03_kerr_faraday.ipynb<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Evaluates Kerr and Faraday magneto-optical rotations for a published dielectric<br>tensor benchmark.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>04_load_yaml_project.ipynb<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Loads a YAML project file, inspects the sample, runs the simulation, and shows<br>the equivalent headless <code>SimulationConfig<\/code> workflow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>05_fit_experimental_data.ipynb<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Creates a small synthetic dataset, fits one layer thickness without the GUI,<br>plots model\/data\/residuals, and writes fit outputs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Running<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">From the repository root:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jupyter lab examples\/notebooks<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jupyter notebook examples\/notebooks<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The notebooks first try to use the local <code>src\/<\/code> tree when they are opened from<br>a Dyna source checkout. If no source checkout is found, they use the installed<br><code>DynaRef<\/code> package.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notebooks on GitLab These notebooks provide interactive, GUI-independent examples for users whoprefer to explore Dyna calculations step by step. Available Notebooks 01_basic_reflectivity.ipynb Builds the default W\/Si sample, runs a Stepanov angle scan, plots thereflectivity, and saves the calculated observables to &hellip; <a href=\"https:\/\/dyna.neel.cnrs.fr\/index.php\/dyna-jupyter-notebooks\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1098","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages\/1098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1098"}],"version-history":[{"count":1,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages\/1098\/revisions"}],"predecessor-version":[{"id":1100,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages\/1098\/revisions\/1100"}],"wp:attachment":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}