From a25e2c4943fa203c32dd7ee47d2cb9b5646b3cb2 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 8 Dec 2023 12:37:43 +0100 Subject: [PATCH] chore(code): Add experimental molten notebook --- 00-notebooks/test-magma.qmd | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 00-notebooks/test-magma.qmd diff --git a/00-notebooks/test-magma.qmd b/00-notebooks/test-magma.qmd new file mode 100644 index 0000000..1db4e2f --- /dev/null +++ b/00-notebooks/test-magma.qmd @@ -0,0 +1,55 @@ +--- +bibliography: 02-data/supplementary/lib.bib +csl: /home/marty/documents/library/utilities/styles/APA-7.csl +papersize: A4 +linestretch: 1.5 +fontfamily: lmodern +fontsize: "12" +geometry: + - left=2.2cm + - right=3.5cm + - top=2.5cm + - bottom=2.5cm +toc: false +link-citations: true +link-bibliography: true +number-sections: false +lang: en +title: Scoping review on 'what works' +subtitle: Addressing inequalities in the World of Work +filters: + - src/pandoc-to-zotero-live.lua +zotero: + library: wow-inequalities + client: zotero + csl-style: apa +--- + +```{python} +#| echo: false +from pathlib import Path +DATA_DIR=Path("./02-data") +BIB_PATH = DATA_DIR.joinpath("raw/01_wos-sample_2023-11-02") + +## standard imports +from IPython.core.display import Markdown as md +import numpy as np +import pandas as pd +from matplotlib import pyplot as plt +import seaborn as sns +from tabulate import tabulate + +sns.set_style("whitegrid") +``` + +```{python} +rng = np.random.RandomState(0) +x = np.linspace(0, 10, 500) +y = np.cumsum(rng.randn(500, 6), 0) +``` + +```{python} +# same plotting code as above! +plt.plot(x, y) +plt.legend('ABCDEF', ncol=2, loc='upper left'); +```