Relative Content

Tag Archive for cssrr-markdownmarkdownbookdown

How can I number a chunk’s code but not its output?

I’m writing an online book (bs4_book) with the bookdown package in RMarkdown. Inside the markdown there are Python chunks with simple operations like importing libraries and arithmetic calculations. I’ve been looking for a way to make the lines inside the Python chunks numbered by changing parameters inside the style.css file. Although I succeeded, this method also numbers the output of the cells, and I personally don’t like it.
I know there must be a way to define it inside the .css file, but I don’t know the language.