Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 1017 Bytes

File metadata and controls

17 lines (14 loc) · 1017 Bytes

Programming Best Practices

To complete this tutorial:

  • go to https://jupyter.org/try
  • click "Try JupyterLab"
  • close open tabs in the Lab (not necessary, just less confusing)
  • open a terminal in the Lab (File>New>Terminal)
  • paste the following into the terminal to get the jupyter notebook:
    wget https://raw.githubusercontent.com/capprogram/bestpractices/master/bestpractices.ipynb -P /home/jovyan/demo
  • paste both of the following into the terminal to get the two python codes:
    wget https://raw.githubusercontent.com/capprogram/bestpractices/master/templatecode.py -P /home/jovyan/demo
    wget https://raw.githubusercontent.com/capprogram/bestpractices/master/templatecodeprotected.py -P /home/jovyan/demo
  • if necessary, click the refresh page (curled arrow) at the top of the webpage
  • launch the jupyter notebook and open the two python codes by double clicking on them
  • you can run or re-run individual cells in the notebook by clicking on them and typing Ctrl-Enter