Difference between revisions of "EGR 224/Spring 2023/Lab 00"

From PrattWiki
Jump to navigation Jump to search
Line 25: Line 25:
  
 
=== Expand and upload the HW00soln folder to Google Drive ===
 
=== Expand and upload the HW00soln folder to Google Drive ===
** On your computer:
+
* On your computer:
*** Find and open the HW00soln.zip file
+
** Find and open the HW00soln.zip file
**** On Windows, click the "Extract all" icon at the top of the page when you open the file -- keep track of where it extracts the file to
+
*** On Windows, click the "Extract all" icon at the top of the page when you open the file -- keep track of where it extracts the file to
**** On macOS,  
+
*** On macOS,  
** In the Google Drive tab, double-click on the "Colab Notebooks" folder to open it
+
* In the Google Drive tab, double-click on the "Colab Notebooks" folder to open it
*** Right-click in the blank space and select '''''"Folder Upload"'''''
+
** Right-click in the blank space and select '''''"Folder Upload"'''''
*** Go find where your extracted the "HW00soln" folder is and drag it into the "Colab Notebooks" folder
+
** Go find where your extracted the "HW00soln" folder is and drag it into the "Colab Notebooks" folder
  
 
=== Create a Helpers folder and upload sym_helper.py ===
 
=== Create a Helpers folder and upload sym_helper.py ===
** In the Google Drive tab, double-click on the "Colab Notebooks" folder to open it
+
* In the Google Drive tab, double-click on the "Colab Notebooks" folder to open it
*** Right-click in the blank space and create a new folder called "Helpers"
+
** Right-click in the blank space and create a new folder called "Helpers"
*** Double-click the "Helpers" folder
+
** Double-click the "Helpers" folder
*** Go find where your downloaded "sym_helpers.py" and drag it into the "Helpers" folder
+
** Go find where your downloaded "sym_helpers.py" and drag it into the "Helpers" folder
  
 
=== Open and run the findfits.ipynb notebook ===
 
=== Open and run the findfits.ipynb notebook ===

Revision as of 19:08, 17 January 2023

At The Beginning of Lab

Create / Log-in to a Google Account

Log-in to Google Drive

Log-in to Google Colab

  • In another tab in the same browser, go to https://colab.research.google.com
    • In the Colab tab, click File and select "New notebook" - among other things, if you haven't gone here before, this will create a "Colab Notebooks" folder in your Google Drive

Get files from Sakai on your computer

  • In another tab in the same browser, go to https://sakai.duke.edu/
  • Get the HW00soln.zip folder:
    • In the Sakai tab:
      • Go to the page for EGR 224
      • Click on the "Resources" link at left
      • Click on the "HW 0 Files" folder in Resources
      • Right-click the "HW00soln.zip" file and save it to your computer
  • Get the sym_helpers.py file:
    • In the Sakai tab:
      • Click on the "Helpers" folder in the "HW 0 Files" folder
      • Right-click the "sym_helper.py" file and save it to your computer

Expand and upload the HW00soln folder to Google Drive

  • On your computer:
    • Find and open the HW00soln.zip file
      • On Windows, click the "Extract all" icon at the top of the page when you open the file -- keep track of where it extracts the file to
      • On macOS,
  • In the Google Drive tab, double-click on the "Colab Notebooks" folder to open it
    • Right-click in the blank space and select "Folder Upload"
    • Go find where your extracted the "HW00soln" folder is and drag it into the "Colab Notebooks" folder

Create a Helpers folder and upload sym_helper.py

  • In the Google Drive tab, double-click on the "Colab Notebooks" folder to open it
    • Right-click in the blank space and create a new folder called "Helpers"
    • Double-click the "Helpers" folder
    • Go find where your downloaded "sym_helpers.py" and drag it into the "Helpers" folder

Open and run the findfits.ipynb notebook

  • In the Google Drive tab, double-click on "Colab Notebooks" then "HW00soln" then "findfits.ipynb" -- Google Colab should automatically open a new tab with the "findfits.ipynb" notebook.
  • In the "findfits.ipynb" tab, click "Runtime" and select "Run all". As the notebook is running, it should ask if you will permit your notebook to access your Google Drive files. You should allow it to...

Access Dr. G's linear algebra examples

Open the Pundit page for the assignment

  • In another tab in the same browser, go to Homework 0

At the end of lab