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: "To create this interactive visual, we have used the interact
and widgets
programming objects from the ipywidgets
module."
A block of code is set as follows:
from ipywidgets import interact, widgets interact(plotyear,year=widgets.IntSlider(min=2010,max=2019,step=1,value=2010))
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Xs_t.plot.scatter(x='PC1',y='PC2',c='PC3',sharex=False, vmin=-1/0.101, vmax=1/0.101, figsize=(12,9)) x_ticks_vs = [-2.9*4 + 2.9*i for i in range(9)]
Bold: Indicates a new term, an important word, or words that you see on screen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "The missing values for the attributes from SupportQ1 to AttitudeQ3 are from the same data objects."
Tips or Important Notes
Appear like this.