Conventions used
There are a number of text conventions used throughout this book.
Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “If you refer to the following diagram, the packet sizes are stored in the packet_sizes array and the timestamps of the packet are stored in the timestamps variable.”
A block of code is set as follows:
def packet_handler(packet):print(packet)packet_sizes.append(len(packet))timestamps.append(packet.time)
Any command-line input or output is written as follows:
pip install sphinx
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “With reference to the preceding figure, when you click the Run button shown at the top, you’ll launch a Flask server (a URL that will return some sort of answer when it is called).”
Tips or important notes
Appear like this.