


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An important thing to remember in computing is, when in doubt, you can always ... Intro. to Computing ... instruction of a computer program.
Typology: Lecture notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!
An important thing to remember in computing is, when in doubt, you can always do a google search for your question. There are a lot of resources online including StackExchange, which usually can answer any of your questions. There are also a lot of online tutorials that can teach you python and other languages. This is a basic guide designed to get you from an absolute basic understanding of computers to opening a Jupyter notebook, which can then prepare you to go through our notebook python tutorials. We are trying to make this bootcamp inclusive for all of the incoming levels of our students, so feel free to skip any of this introduction you already are familiar with.
Fig. 1.1. Diagram of computer hardware
If this is your first time coding, it is helpful to know some basics about how a computer works. There are a couple of parts of computer hardware you want to think about when writing basic code: the CPU, the memory, and the disk (figure 1.1).
The CPU is the central processing unit, this is where computations are done under the instruction of a computer program. Most modern CPU have multiple cores, where each core can focus on one task at a time. CPUs have a limited speed that is limited by heat build-up and transmission delays over wires connecting the transistors in the CPU chip. The memory is storage for quick access by a program. A common type of memory is random-access memory (RAM). When writing a code, it’s important to consider the amount of memory your program will use, since it can be easy to use too much memory. The disk is the computer’s storage. Two common types of internal disk are hard drives and solid state drives (SSD). Standard laptop disk drives store about 200GB to 2TB of data. You want to make sure your code is not set up to write more bytes of code to your disk than is available. Also, disk input and output (I/O) is relatively slow compared to accessing memory. Your operating system is usually stored in a partition on your main disk, but you can have multiple internal disks and can plug in external disks (e.g. external hard drives, flash drives, CDs, floppy disks (that save button thing), etc.).
Fig. 1.2. Mapping of computer software
An operating system (OS) creates the first part of a map between the hardware and the user (figure 1.2). The three most common types of OS are Mac, Windows, and Linux. Mac and Linux are in the UNIX family of OSs. Mac and Windows are proprietary software whereas Linux systems are open source. This makes it easy for IceCube software and security to be quickly updated for changes to the Linux OS. A user friendly Linux OS is Ubuntu. The virtual machine sent out to all bootcamp attendies is Ubuntu 18.04.2 which is the newest long term service release. The user interacts with the operating system and programs through what is called a shell. There are two types of shells, command line interfaces (CLI) and graphical user interfaces (GUI). Windows machines use the Windows GUI, Mac machines use the Aqua GUI, and Ubuntu machines use the Unity GUI as a default.
Fig. 3.1. Jupyter notebook home browser page
3 Installing and Running Jupyter Notebook
To install Jupyter notebook open terminal on your Ubuntu virtual machine. Use the follow- ing command to install the
sudo apt install jupyter-notebook
The sudo command will require you to enter the password for the user. After the password is entered type Y when prompted to confirm you want to install jupyter-notebook on your machine. Next, you might want to navigate to your IceCube directory before you open up Jupyter notebook.
cd IceCube/
Then open Jupyter notebook using the following command.
jupyter-notebook
This should cause a browser window to open up as shown in figure 3.1. You can use this browser page to navigate the directory and create new notebooks. Woohoo!