From 8dd9c8275bd8a777f35a31c1f8d5397d2b8ec665 Mon Sep 17 00:00:00 2001 From: Bowy La Riviere <b.m.lariviere@student.tudelft.nl> Date: Sun, 17 Jan 2021 18:03:49 +0000 Subject: [PATCH] Fixed jupyter not working --- src/1_einstein_model_solutions.md | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/1_einstein_model_solutions.md b/src/1_einstein_model_solutions.md index e39e817d..7e335ceb 100644 --- a/src/1_einstein_model_solutions.md +++ b/src/1_einstein_model_solutions.md @@ -1,12 +1,36 @@ +--- +jupyter: + jupytext: + text_representation: + extension: .md + format_name: markdown + format_version: '1.0' + jupytext_version: 0.8.6 + kernelspec: + display_name: Python 3 + language: python + name: python3 +--- + +```python tags=["initialize"] +from matplotlib import pyplot as plt +from mpl_toolkits.axes_grid1 import make_axes_locatable + +import numpy as np +from scipy.optimize import curve_fit +from scipy.integrate import quad + +from common import draw_classic_axes, configure_plotting + +configure_plotting() +``` + # Solutions for lecture 1 exercises ### Warm-up exercises 1. An ideal gas only contains 3 positional degrees of freedom. 2. $C = 2k_B$. 3. See image below ```python -import matplotlib.pyplot as plt -import numpy as np - fig, ax = plt.subplots() omega = np.linspace(0.1, 3) T = [1,2] -- GitLab