From 4abc43cdcb7fba399d5377481dd88e54b2db8cb6 Mon Sep 17 00:00:00 2001
From: Christian Kolset <christian.kolset@gmail.com>
Date: Thu, 24 Apr 2025 15:31:56 -0600
Subject: Added tex file structure for each module

---
 book/module1/intro_to_anaconda.tex | 193 +++++++++++++++++++++++++++++++++++++
 1 file changed, 193 insertions(+)
 create mode 100644 book/module1/intro_to_anaconda.tex

(limited to 'book/module1/intro_to_anaconda.tex')

diff --git a/book/module1/intro_to_anaconda.tex b/book/module1/intro_to_anaconda.tex
new file mode 100644
index 0000000..5e58908
--- /dev/null
+++ b/book/module1/intro_to_anaconda.tex
@@ -0,0 +1,193 @@
+\section{Introduction to Anaconda
+Navigator}\label{introduction-to-anaconda-navigator}
+
+Anaconda Navigator is a program that we will be using in this course to
+manage Python environments, libraries and launch programs to help us
+write our python code.
+
+The Anaconda website nicely describes \emph{Navigator} as:
+
+a graphical user interface (GUI) that enables you to work with packages
+and environments without needing to type conda commands in a terminal
+window.Find the packages you want, install them in an environment, run
+the packages, and update them -- all inside Navigator.
+
+To better understand how Navigator works and interacts with the anaconda
+ecosystem see the figure below.
+\includegraphics{figures/AnacondaSchematic.png} As you schematic
+indicated, Navigator is a tool in the Anaconda toolbox that allows the
+user to select and configure python environments and libraries. Let's
+see how we can do this.
+
+\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
+
+\subsection{Getting Started}\label{getting-started}
+
+Note to windows 10 users: Some installation instances do not allow users
+to search the start menu for \emph{Navigator}, instead, you'll have to
+find the program under the \emph{Anaconda (anaconda3)} folder. Expand
+the folder and click on \emph{Anaconda Navigator} to launch the program.
+
+\begin{figure}
+\centering
+\includegraphics{figures/installingAnaconda_windows_launched.png}
+\caption{Anaconda Navigator screen}
+\end{figure}
+
+Once Navigator starts, under \emph{Home}, you'll see tiles of programs
+that come with anaconda. The tab allows you to launch the programs we
+will be using in this course. Before jumping straight into the programs
+we will first need to configure our Python instance.
+
+The \emph{Environment} page allows us to install a variety of libraries
+and configure our environments for different project, more on this in
+the next section.
+
+\subsection{Environments}\label{environments}
+
+A Python environment can be thought of as a ``container'' where you can
+have all the tools, libraries, and dependencies your Python project
+needs without interfering with other projects. Think of it as a
+dedicated toolbox for your project.
+
+Although the base environment comes with many libraries and programs
+pre-installed, it's recommended to create a dedicated environment for
+your projects. This protects the base environment from breaking due to
+complex dependency conflicts. Let us go ahead and create a new
+environment for us to use Spyder with.
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\tightlist
+\item
+  Click on the \emph{Environments} page located on the left hand side.
+\end{enumerate}
+
+\begin{figure}
+\centering
+\includegraphics{https://mintlify.s3.us-west-1.amazonaws.com/anaconda-29683c67/images/nav-env-labeled.png}
+\caption{Environment Page}
+\end{figure}
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\setcounter{enumi}{1}
+\tightlist
+\item
+  At the bottom of the environments list, click \emph{Create}.
+\end{enumerate}
+
+\begin{figure}
+\centering
+\includegraphics{https://mintlify.s3.us-west-1.amazonaws.com/anaconda-29683c67/images/nav-getting-started-create.png}
+\caption{Create new environment}
+\end{figure}
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\setcounter{enumi}{2}
+\item
+  Select the python checkbox.
+\item
+  Select versions of python. At the time of making this tutorial the
+  latest version of Python is 3.xx.x. We will go ahead and use that one.
+\item
+  Choose an appropriate name for your project. We will be creating an
+  environment for the Spyder IDE so we'll call it ``Spyder-env''.
+\item
+  Click \emph{Create}.
+\end{enumerate}
+
+For more information see
+\href{https://docs.anaconda.com/working-with-conda/environments/}{Anaconda
+Environments} and
+\href{https://docs.anaconda.com/navigator/tutorials/manage-environments/}{Managing
+environment}.
+
+\subsection{Package Management}\label{package-management}
+
+Now that we have a clean environment configured, let us install some
+library we will be using for this class.
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\tightlist
+\item
+  Navigate to the environment page and select the environment we just
+  created in the previous section.
+\end{enumerate}
+
+\begin{figure}
+\centering
+\includegraphics{https://mintlify.s3.us-west-1.amazonaws.com/anaconda-29683c67/images/nav-pkg-list.png}
+\caption{Select environment to manage}
+\end{figure}
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\setcounter{enumi}{1}
+\tightlist
+\item
+  Use the search bar in the top right corner to search for the following
+  packages:
+\end{enumerate}
+
+\begin{longtable}[]{@{}ll@{}}
+\toprule\noalign{}
+Library & Usage \\
+\midrule\noalign{}
+\endhead
+\bottomrule\noalign{}
+\endlastfoot
+numpy & Numerical computation \\
+scipy & Scientific and techical computing \\
+pandas & Data manipulation and analysis \\
+matplotlib & Plots and visualizations \\
+sympy & Symbolic mathematics \\
+\end{longtable}
+
+\emph{Note: The libraries list may change throughout the development of
+this course}
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\setcounter{enumi}{2}
+\tightlist
+\item
+  Check the boxes to install the selected packages to the current
+  environment.
+\end{enumerate}
+
+\subsection{Installing Applications}\label{installing-applications}
+
+From the \emph{Home} page you can install applications, to the current
+environment we created in the Environment section above. In this section
+we will install Spyder IDE, but the process is exactly the same for
+other applications.
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\item
+  Go to the \emph{Home} page.
+\item
+  Select the desired environment. In our case, we select
+  \emph{Spyder-env}.
+\item
+  From the Home page find the Spyder IDE tile. Click the \emph{Install}
+  button to start the download.
+\end{enumerate}
+
+\begin{figure}
+\centering
+\includegraphics{https://mintlify.s3.us-west-1.amazonaws.com/anaconda-29683c67/images/nav-tabs.png}
+\caption{Anaconda Home Page}
+\end{figure}
+
+\begin{enumerate}
+\def\labelenumi{\arabic{enumi}.}
+\setcounter{enumi}{3}
+\tightlist
+\item
+  Once the download is complete, press \emph{Launch} to start the
+  applications.
+\end{enumerate}
-- 
cgit v1.2.3

