This file is used to store some tips and tricks I collect while programming in Python.
When a single string is looked for in a list of strings by providing a sub-string, here is the solution with the lowest execution time:
s = next((s for s in slist if subs in s), None)
# Faster than
s = [s for s in slist if subs in s][0]
jupyter nbconvert notebook.ipynb --to slides --post serve --SlidesExporter.reveal_theme=serif --SlidesExporter.reveal_scroll=True --SlidesExporter.reveal_transition=none --reveal-prefix "http://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0"