# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# [Link to this document's Jupyter Notebook](./0126--ENV_pre-class-assignment.ipynb)

# In order to successfully complete this assignment you must do the required reading, watch the provided videos and complete all instructions.  The embedded survey form must be entirely filled out and submitted on or before **11:59pm on Tuesday January 26**.  Students must come to class the next day prepared to discuss the material covered in this assignment. 

# ---
#
#

# # Pre-Class Assignment: Navigating Shared Clusters (HPC)

# # Goals for today's pre-class assignment 
#
# 1. [Create XSEDE Account](#Create-XSEDE-Account)
# 2. [Finding software on the HPCC](#Finding-software-on-the-HPCC)
# 3. [Assignment wrap up](#Assignment-wrap-up)
#
#

#
#
# ---
# <a name=Create-XSEDE-Account></a>
# # 1. Create XSEDE Account
#
#
#
# <a href="https://www.xsede.org/"><img alt="Picture of the XSEDE Logo which is just the word XSEDE on an outer space background with some molecules overlayed in the foreground. I think it is supposed to give a feeling for modern science." src="https://arc-ts.umich.edu/wp-content/uploads/sites/4/2016/03/xsedebanner.jpg"></a>
#
# The National Science Foundation invests quite a bit of money into providing computing resources to researchers.  The Extreme Science and Engineering Discovery Environment (XSEDE) is a single virtual system that scientists can use to interactively share computing resources and expertise. Here is a short video that describes XSEDE.

from IPython.display import YouTubeVideo
YouTubeVideo("PBUIBJHZzD4",width=640,height=360)

# As part of this course we have obtained access to compute resources on these National Systems. In order to use these resources you will need an XSEDE portal account. Please sign up for an account here:
#
# https://portal.xsede.org/#/guest
#
# Provide your portal ID to the instructor using the Google form below. 

# &#9989; **<font color=red>QUESTION:</font>** What is your XSEDE Portal Account UserID?

# Put your Portal ID Here.

#
#
# ---
# <a name=Finding-software-on-the-HPCC></a>
# # 2. Finding software on the HPCC
#
#
# The following video describes the ```PATH``` environment variable and shows you how it can be changed to add software installed in a new location. 
#

from IPython.display import YouTubeVideo
YouTubeVideo("2OXvoXejZcw",width=640,height=360)

# ### Commands used in the above video
#
# ```
#     ls
#     clear
#     which python
#     cd
#     env
#     echo $PATH
#     echo $PATH | sec -r "s/:/\\n/g"
#     export PATH=~/anaconda3/bin:$PATH
#     ssh dev-intel16
#     nano ~/.bashrc
# ```

# &#9989; **<font color=red>QUESTION:</font>** What is the ```which``` command used for?

# Put your answer to the above question here.

# &#9989; **<font color=red>QUESTION:</font>** The PATH environment variable is a set of system folders separated by a colon (:).  What command would you use to add the ```/mnt/research/mygroup/bin``` folder to the end of your path?

# Put your answer to the above question here.

# The following video shows some basics on how to use the ```module``` command that is available on the HPCC. 

from IPython.display import YouTubeVideo
YouTubeVideo("lXYpQeU3j-0",width=640,height=360)

# ### Commands used in the above video
#
# ```
#     ssh dev-intel16
#     clear
#     who | wc -l
#     module list
#     module spider MATLAB
#     module unload MATLAB
#     module load MATLAB/2018b
#     which matlab
#     module swap MATLAB/2018b MATLAB/2018a
#     module avail
#     module unload gnu
#     module load intel
#     module show intel
#     module purge
# ```

# &#9989; **<font color=red>QUESTION:</font>** Use the ```module spider``` command to search modules.  What versions of the libpng are available on the HPCC?  (**Note**: if the modules have changed since the last time you used the ```module spider``` command it may need to rebuild it's database which can take a few seconds).  

# Put the answer to the above question here. 

#
#
# ---
# <a name=Assignment-wrap-up></a>
# # 3. Assignment wrap up
#
#
# Please fill out the form that appears when you run the code below.  **You must completely fill this out in order to receive credits for the assignment!**
#
# [Direct Link to Google Form](https://cmse.msu.edu/cmse401-pc-survey)
#
#
# If you have trouble with the embedded form, please make sure you log on with your MSU google account at [googleapps.msu.edu](https://googleapps.msu.edu) and then click on the direct link above.

# &#9989; **<font color=red>Assignment-Specific QUESTION:</font>**   What is your XSEDE Portal Account UserID?

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>**  Summarize what you did in this assignment.

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>**  What questions do you have, if any, about any of the topics discussed in this assignment after working through the jupyter notebook?

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>**  How well do you feel this assignment helped you to achieve a better understanding of the above mentioned topic(s)?

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>** What was the **most** challenging part of this assignment for you? 

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>** What was the **least** challenging part of this assignment for you? 

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>**  What kind of additional questions or support, if any, do you feel you need to have a better understanding of the content in this assignment?

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>**  Do you have any further questions or comments about this material, or anything else that's going on in class?

# Put your answer to the above question here

# &#9989; **<font color=red>QUESTION:</font>** Approximately how long did this pre-class assignment take?

# Put your answer to the above question here

from IPython.display import HTML
HTML(
"""
<iframe 
	src="https://cmse.msu.edu/cmse401-pc-survey" 
	width="100%" 
	height="500px" 
	frameborder="0" 
	marginheight="0" 
	marginwidth="0">
	Loading...
</iframe>
"""
)

#
#
# ---------
# ### Congratulations, we're done!
#
# To get credit for this assignment you must fill out and submit the above survey from on or before the assignment due date.

# ### Course Resources:
#
#
#  - [Website](https://msu-cmse-courses.github.io/cmse802-f20-student/)
#  - [ZOOM](https://msu.zoom.us/j/98207034052)
#  - [JargonJar](https://docs.google.com/document/d/1ahg48CCFhRzUL-QIHzlt_KEf1XqsCasFBU4iePHhcug/edit#)
#  - [GIT](https://gitlab.msu.edu/colbrydi/cmse401-s21.git)
#
#

# Written by Dr. <NAME>, Michigan State University
# <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Attribution-NonCommercial 4.0 International License</a>.

# ----

# ----

StarcoderdataJupyterScriptsDedupFiltered