REPL & Scripts

Session Overview

  • Leveraging REPL for fast iteration
  • Best Practices for Script Construction
  • Comments
  • Beginnings of Workflow Management

Let’s Play!

  • Log Into Course Platform esds.ncics.org/

  • Select Previous Workspace

  • Select JupyterLab


If you are interested in other IDE options, please let us know. You can run REPLs in Vim, VS Code, Cursor, RStudio, Positron, Spyder, PyCharm… and many more.

IDE Tour

  • Console
  • Environment
  • Files
  • Scripts
  • Notebooks
  • Using the REPL

Best Practices / Workflow Management

  • Prioritize Readability
  • Use intelligible Variable Names
  • Use Comments
  • Run your code!
  • Save files with meaningful names & numbers
  • Separate parts of your workflow into logical sequence (blocks in the code)

Exercise

Create a script that calculates 5 factorial when run…

…then run it! :)