{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### <p style=\"text-align: right;\"> &#9989; **Put your name here** </p>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "slideshow": {
     "slide_type": "-"
    }
   },
   "source": [
    "# Day 2 Pre-Class Assignment: Jupyter and Scientific Models\n",
    "\n",
    "<img src=\"https://cmse.msu.edu/sites/_cmse/assets/Image/image001.png\" width= 400><p style=\"text-align: right;\">\n",
    "Image from https://cmse.msu.edu/\n",
    "</p>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "slideshow": {
     "slide_type": "-"
    }
   },
   "source": [
    "## Learning goals for today's pre-class assignment \n",
    "\n",
    "1. Remind ourselves how Jupyter works\n",
    "2. Understanding what a model is. To those ends we will explore.\n",
    "    1. Just what the word \"model\" means.\n",
    "    2. Take a look at different interpretations of the word model.\n",
    "    3. Why are models a good thing to build.\n",
    "    4. What are some of the disadvantages of models.\n",
    "3. Have you gather some data you think you would like to use to model.\n",
    "\n",
    "Additionally, we want to make sure everyone has copleted their [CATME survey](catme.org)."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Assignment instructions\n",
    "\n",
    "Pre-class assignments will be composed of a combination of videos, text to read, and small assignments.  The goal of these assignments is to prepare you for class the following day.  You should watch the videos and read the text, and then do the assigned work.  You will be graded on making a good-faith effort, not on absolute correctness! When you don't understand something, make a note of it this notebook so that the instructor can work to address these issues.\n",
    "\n",
    "To make notebook cells that have Python code in them do something, hold down the 'shift' key and then press the 'enter' or 'return' key (you'll have to do this to get movies to run).  To edit a cell (to add answers, for example) you double-click, add your text, and then enter it by holding down 'shift' and pressing 'enter'.  \n",
    "\n",
    "**This assignment is due by 11:59 p.m. the day before class,** and should be uploaded into the appropriate \"Pre-Class Assignments\" submission folder. "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 1. Do your CATME survey\n",
    "\n",
    "We will do group assignments during the in-class this week. Make sure you did your survey!"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "-------------\n",
    "## 2. Review of Python, IPython, and IPython notebooks\n",
    "This section is a quick review of what we did last semester and what we did in class on the first day.  Please watch the videos and answer the questions provided. **Note:** Many of the videos we will use in this course were created by a previous CMSE 202 instructor, Dr. Dirk Colbry. Dr. Colbry is the Director of High-Performance Computing Studies in the CMSE Department and the point of contact for any technical issues you may have with the course tools."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Import for Youtube links\n",
    "Remember to run the import below to make the you tube videos work"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "from IPython.display import YouTubeVideo"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### What is Jupyter\n",
    "\n",
    "If you have trouble with the YouTube version, you watch [this video on MSU MediaSpace](https://mediaspace.msu.edu/media/0_whcwvc67)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "YouTubeVideo(\"L03BzGmLUUE\",width=640,height=360)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Working with Jupyter files\n",
    "\n",
    "If you have trouble with the YouTube version, you watch [this video on MSU MediaSpace](https://mediaspace.msu.edu/media/0_j6l2si4t)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "YouTubeVideo(\"5WSQnGmz3IA\",width=640,height=360)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Watch the above video and answer the following questions:"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 1:**  Besides Python, what other languages have you been introduced to (ex. C, C++, R, FORTRAN, MATLAB, JS, etc). \n",
    "\n",
    "Please feel free to elaborate on your answer to give us an idea of your experience for each language. For example, I could write a \"hello world\" program in less than five minutes? (note a \"Hello world\" program is just the most basic program which displays the words \"Hello World\"). Or, I took class XX in Language YY."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text). Please use appropriate Markup formating to make your answer's easy to read."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 2:**  Besides Jupyter, What other programming interfaces have you used (if any)? Some examples may include; Command line interfaces, Python Spyder, Microsoft Visual Studio, Eclipse, etc."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "-----\n",
    "## 3. Introduction to the Engineering JupyterHub Account\n",
    "The following video will introduce you to the Engineering JupyterHub Interface. Please watch this video and answer the questions. Log onto the engineering Jupyterhub account using the following link: \n",
    "\n",
    "http://jupyterhub.egr.msu.edu. \n",
    "\n",
    "In order to log into the JupyterHub you need to activate your DECS account first. If you haven't done this yet, go to:\n",
    "\n",
    "https://www.egr.msu.edu/decs/myaccount/?page=activate\n",
    "\n",
    "Your \"Initial Password\" is your PID, which is the number that starts with \"A\" on your MSU SpartanCard, followed by the \"@\" symbol (e.g. A123467890@). Once you activate your account, you'll be able to log in to JupyterHub. Contact the instructor if you have issues with this process.\n",
    "\n",
    "**Note:** The expectation for this course is that you will use the Anaconda Python 3 installation on your personal computer. However, when you run into issues with your computer or your Python installation, you should be familiar with using the JupyterHub interface so that you can use it as a backup option. For this pre-class notebook, you will be expected to use the JupyterHub for all of the command-line interface (CLI) components to get practice with it. In class, we'll use the command prompt that is available on your laptop.\n",
    "\n",
    "If you have trouble with the YouTube version, you watch [this video on MSU MediaSpace](https://mediaspace.msu.edu/media/0_fkhx99ab)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# the command below this comment actually displays a specific YouTube video,  \n",
    "# with a given width and height.  You can watch the video in full-screen (much higher\n",
    "# resolution) mode by clicking the little box in the bottom-right corner of the video.\n",
    "\n",
    "YouTubeVideo(\"l7mhi4ww6tY\",width=640,height=360)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 3:** Please describe the primary computer you will be using for class (Laptop, Desktop, tablet, etc); it's operating system (Mac, Windows, Linux, etc.) Any other details you want to brag about (RAM, CPU speed, disk space, etc.)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 4:** Are you able to successfully log on to the Engineering Jupyterhub?  If no, what problems are you having. Also, if no, make sure the instructor(s) are aware of the problem (besides telling us here in this assignment)?"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "----\n",
    "\n",
    "## 4. What is a Model?\n",
    "\n",
    "I could give you a video to watch, by what don't you reach out and search for yourself and see if you can find a good video that describes what a scientific model is. Put the link in the cell below (you'll share it with your colleagues later)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# fill in the link between the two double quotes, either and http address or just the video\n",
    "# number as used above\n",
    "\n",
    "YouTubeVideo(\"\",width=640,height=360)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 5:** In the cell below, please fill in and describe what you learned about scientific models from the video selected, in particular what you found informative/helpful?"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 6:** What elements concerning scientific models do you think the video did not discuss well?"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 7:** Take a look around the internet and find a data set that you find interesting and would like to model. Describe the data below and, in your own words, how you might model it."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Question 8:** In the cell below, describe what difficulties do you think you would encounter in trying to build your model? How might you get around some of these difficulties."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<font size=8 color=\"#009600\">&#9998;</font> Do This - Erase the contents of this cell and replace it with your answer to the above question!  (double-click on this text to edit this cell, and hit shift+enter to save the text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---\n",
    "## Follow-up Questions\n",
    "\n",
    "Copy and paste the following questions into the appropriate box in the assignment survey include below and answer them there. (Note: You'll have to fill out the section number and the assignment number and go to the \"NEXT\" section of the survey to paste in these questions.)\n",
    "\n",
    "1. Are there any aspects of programming in Python that you feel like you still struggle with from time to time?\n",
    "\n",
    "2. What do you feel you could use more work on from 201, that is things you saw but don't feel quite comfortable with yet but feel are important?\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---\n",
    "### Assignment wrap-up\n",
    "Please fill out the form that appears when you run the code below.  **You must completely fill this out in order to receive credit for the assignment!**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "from IPython.display import HTML\n",
    "HTML(\n",
    "\"\"\"\n",
    "<iframe \n",
    "\tsrc=\"https://cmse.msu.edu/cmse202-pc-survey\" \n",
    "\twidth=\"800px\" \n",
    "\theight=\"600px\" \n",
    "\tframeborder=\"0\" \n",
    "\tmarginheight=\"0\" \n",
    "\tmarginwidth=\"0\">\n",
    "\tLoading...\n",
    "</iframe>\n",
    "\"\"\"\n",
    ")\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "-----\n",
    "### Congratulations, you're done with your first pre-class assignment!\n",
    "\n",
    "Now, you just need to submit this assignment by uploading it to the course <a href=\"https://d2l.msu.edu/\">Desire2Learn</a> web page for today's submission folder (Don't forget to add your name in the first cell)."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "&#169; Copyright Michigan State University Board of Trustees"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
