Difference between revisions of "EGR 103/Fall 2022/Beginning of Lab"

From PrattWiki
Jump to navigation Jump to search
(Created page with "In the example commands below, anywhere you see '''''NN''''' you should replace that with the two-digit version of the lab number, adding a leading zero if the lab number is l...")
 
m (spelling fix)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
  
 
== Log In and Setup ==
 
== Log In and Setup ==
Log in to your computer and make sure your Box Drive Folder (hereafter called <code>Box/</code>) is mounted to your computer.  If you are off-campus or otherwise not on a Duke secured network, be sure to start a [[How_To_Get_Work_Done#Connecting_from_Off_Campus|VPN connection]].  If you did not successfully complete the work done in Lab 1, you will need to follow all the instructions at [[EGR_103/Fall_2021/LAB_01|Lab 01]] -- please let a TA know '''as soon as you can''' that you need help getting started so they can help get you set up for lab.
+
Log in to your computer and make sure your Box Drive Folder (hereafter called <code>Box/</code>) is mounted to your computer.  If you did not successfully complete the work done in Lab 1, you will need to follow all the instructions at [[EGR_103/Fall_2022/LAB_01|Lab 01]] -- please let a TA know '''as soon as you can''' that you need help getting started so they can help get you set up for lab.
  
 
== Setting Up Files for Spyder ==
 
== Setting Up Files for Spyder ==
 
* Find your Box Drive Folder using File Explorer or Finder, then click into your <code>EGR103F22</code> folder.
 
* Find your Box Drive Folder using File Explorer or Finder, then click into your <code>EGR103F22</code> folder.
* Open a browser to [https://duke.box.com/v/EGR10FS22public Dr. G's Public Box Folder] and then click the <code>...</code> icon to the far right of the appropriate lab number and download the entire folder in a zip file.
+
* Open a browser to [https://duke.box.com/v/EGR103F22public Dr. G's Public Box Folder] and then click the <code>...</code> icon to the far right of the appropriate lab number and download the entire folder.  On Windows, it will be in a zip file.
* Open the zip file that you just downloaded, then drag the contents of the zip file (a single folder) into your <code>Box/EGR103F22</code> folder.  Click in the <code>Box/EGR103F22/Lab'''''NN'''''Files</code> folder to see the files.
+
** Mac: Drag the folder you just downloaded into your <code>Box\ER103F22 folder</code>
 +
** Windows: Open the zip file that you just downloaded, then drag the contents of the zip file (a single folder) into your <code>Box/EGR103F22</code> folder.  Click in the <code>Box/EGR103F22/Lab'''''NN'''''Files</code> folder to see the files.
  
 
== Spyder ==
 
== Spyder ==
Line 15: Line 16:
 
This part is '''''not''''' required at the start of lab.
 
This part is '''''not''''' required at the start of lab.
 
Whenever you are ready to start working on the written lab report, you can set up the new Overleaf project.
 
Whenever you are ready to start working on the written lab report, you can set up the new Overleaf project.
* Open another browser tab and log into [https://www.overleaf.com/ Overleaf].  Create a new blank project called <code>EGR103LAB'''''NN'''''</code>. Delete the <code>main.tex</code> that was created within it. 
+
* Open another browser tab and log into [https://www.overleaf.com/ Overleaf].  Open your <code>EGR103F22</code> project.
* Upload the starter files from your <code>Box/EGR103F22/Lab'''''NN'''''Files</code> folder to the project by clicking on the New File icon (top left) in Overleaf, clicking <code>Upload</code> in the <code>Add files</code> window, then dragging the files from your <code>Box/EGR103F22/Lab'''''NN'''''Files</code> folder onto the <code>Drag here</code> rectangle.
+
* Create a new folder called <code>LAB'''''NN'''''</code>.  
 +
* Upload the starter files from your <code>Box/EGR103F22/Lab'''''NN'''''Files</code> folder to the Overleaf folder for that lab - note that you need to upload the individual files; you can't just upload the folder.
 +
** Click on the <code>LAB'''''NN'''''</code> folder name in Overleaf
 +
** Click the triple-dot option icon to its right
 +
** Click upload
 +
** Drag the ''files'' from your <code>Box/EGR103F22/Lab'''''NN'''''Files</code> folder onto the <code>Drag here</code> rectangle.
 
* After the files are on Overleaf, click on the <code>Lab'''''NN'''''Sample_F22.tex</code> file in your Overleaf project and rename it to <code>lab'''''NN'''''.tex</code>.  Hit <code>Recompile</code>.  Overleaf should recognize <code>lab'''''NN'''''.tex</code> as the main document since it is the only one with a <code>\begin{document}</code> in it, but if not, you can go to the menu for the project by clicking the <code>Menu</code> button at top left of Overleaf and then from that menu changing the "Main document" to <code>lab'''''NN'''''.tex</code>
 
* After the files are on Overleaf, click on the <code>Lab'''''NN'''''Sample_F22.tex</code> file in your Overleaf project and rename it to <code>lab'''''NN'''''.tex</code>.  Hit <code>Recompile</code>.  Overleaf should recognize <code>lab'''''NN'''''.tex</code> as the main document since it is the only one with a <code>\begin{document}</code> in it, but if not, you can go to the menu for the project by clicking the <code>Menu</code> button at top left of Overleaf and then from that menu changing the "Main document" to <code>lab'''''NN'''''.tex</code>

Latest revision as of 13:32, 6 October 2022

In the example commands below, anywhere you see NN you should replace that with the two-digit version of the lab number, adding a leading zero if the lab number is less than ten. This is the Fall 2022 version of this page.

Log In and Setup

Log in to your computer and make sure your Box Drive Folder (hereafter called Box/) is mounted to your computer. If you did not successfully complete the work done in Lab 1, you will need to follow all the instructions at Lab 01 -- please let a TA know as soon as you can that you need help getting started so they can help get you set up for lab.

Setting Up Files for Spyder

  • Find your Box Drive Folder using File Explorer or Finder, then click into your EGR103F22 folder.
  • Open a browser to Dr. G's Public Box Folder and then click the ... icon to the far right of the appropriate lab number and download the entire folder. On Windows, it will be in a zip file.
    • Mac: Drag the folder you just downloaded into your Box\ER103F22 folder
    • Windows: Open the zip file that you just downloaded, then drag the contents of the zip file (a single folder) into your Box/EGR103F22 folder. Click in the Box/EGR103F22/LabNNFiles folder to see the files.

Spyder

  • Start Spyder. You can go through Anaconda Navigator or, if using Windows, go to Start -> Anaconda3 -> Spyder.

Setting up Overleaf

This part is not required at the start of lab. Whenever you are ready to start working on the written lab report, you can set up the new Overleaf project.

  • Open another browser tab and log into Overleaf. Open your EGR103F22 project.
  • Create a new folder called LABNN.
  • Upload the starter files from your Box/EGR103F22/LabNNFiles folder to the Overleaf folder for that lab - note that you need to upload the individual files; you can't just upload the folder.
    • Click on the LABNN folder name in Overleaf
    • Click the triple-dot option icon to its right
    • Click upload
    • Drag the files from your Box/EGR103F22/LabNNFiles folder onto the Drag here rectangle.
  • After the files are on Overleaf, click on the LabNNSample_F22.tex file in your Overleaf project and rename it to labNN.tex. Hit Recompile. Overleaf should recognize labNN.tex as the main document since it is the only one with a \begin{document} in it, but if not, you can go to the menu for the project by clicking the Menu button at top left of Overleaf and then from that menu changing the "Main document" to labNN.tex