From 2635f766d12badac2ab60aaa016500f2322e1eb1 Mon Sep 17 00:00:00 2001 From: Joseph Weston <joseph@weston.cloud> Date: Tue, 9 Jul 2019 09:12:09 +0200 Subject: [PATCH] add download link to magnetic field tutorial Closes #304. --- doc/source/tutorial/magnetic_field.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/source/tutorial/magnetic_field.rst b/doc/source/tutorial/magnetic_field.rst index 5bf242e7..02a5b4e9 100644 --- a/doc/source/tutorial/magnetic_field.rst +++ b/doc/source/tutorial/magnetic_field.rst @@ -3,6 +3,14 @@ Adding magnetic field Computing Landau levels in a harmonic oscillator basis ...................................................... + +.. seealso:: + The complete source code of this example can be found in + :jupyter-download:script:`landau-levels` + +.. jupyter-kernel:: + :id: landau-levels + When electrons move in an external magnetic field, their motion perpendicular to the field direction is quantized into discrete Landau levels. Kwant implements an efficient scheme for computing the Landau levels of arbitrary continuum -- GitLab