% !TEX root=main.tex
\usepackage[outputdir=build]{minted}
\usepackage{tcolorbox}
\usepackage{etoolbox}
\tcbuselibrary{minted,skins,breakable}

\newtcblisting{pythoncode}[2][]{
	listing engine=minted,
	listing only,
	nobeforeafter,
	minted style=friendly,
	minted language=python,
	minted options={fontsize=\scriptsize,numbersep=3mm,texcl=true,linenos,#1},
	left=5mm,enhanced,
	overlay={
			\begin{tcbclipinterior}
				\fill[black!25] (frame.south west) rectangle ([xshift=5mm]frame.north west);
			\end{tcbclipinterior}
		},
	#2,
}

