Conventions used

There are a number of text conventions used throughout this book.

CodeInText: 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: "You can confirm your version number by typing VERSION in the Julia console or REPL."

A block of code is set as follows:

 using Images

sample_image_path = "sample-images/cats-3061372_640.jpg";
sample_image = nothing

if isfile(sample_image_path)
sample_image = load(sample_image_path);
else
info("ERROR: Image not found!")
end

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

using Images, ImageView
img = load("sample-images/cats-3061372_640.jpg");
imshow(img);

Any command-line input or output is written as follows:

julia> using Images
julia> pwd()
"/Users/dc/reps/packt-julia"
Warnings or important notes appear like this.
Tips and tricks appear like this.