Example code used in docs is rendered in a page with certain width. If the code rendered in the page is having too large line length, then horizontal slider is added, which is not terrible, but also not so nice and it reduces the clarity of the code example, when not all of it is visible at once.
(Visualization element in the webpage has the line-wrap option, but that does make examples less readable as it wraps in non-Pythonic way)
Ensure this does not happen. Possible solutions:
- Custom ruff line length settings for example code and running separate ruff check.
- Adjust the webpage to match our normal line length (change width or font size of code examples)
- ...
Some example pages with code examples with slider:
Example code used in docs is rendered in a page with certain width. If the code rendered in the page is having too large line length, then horizontal slider is added, which is not terrible, but also not so nice and it reduces the clarity of the code example, when not all of it is visible at once.
(Visualization element in the webpage has the line-wrap option, but that does make examples less readable as it wraps in non-Pythonic way)
Ensure this does not happen. Possible solutions:
Some example pages with code examples with slider: