I'm using minted to include Python code in my document, but I want to change the font of the letters only in the annotations and make it look more like what is portrayed in Jupyter Notebook.
This is what i have:
\begin{document}
\usepackage{minted}
\begin{minted}
[
frame=lines,
framesep=2mm,
baselinestretch=1.2,
fontsize=\small,
linenos
]
%%% python3 instead of python
{python3}
# Se define una funcion "Trozar" que sirve simplemente para
# facilitar el uso de elementos muy grandes y manejarlos con Pandas.
def Trozar(vec, num): # corta vectores (vec) en "num" pedazos
\end{minted}
And this is what I get:
I don't like the style of the annotations, and would like something like: