/functions-from-zero

A repo to learn functions

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

Codespaces Prebuilds

CI

functions-from-zero

A repo to learn functions!

Step 1: Configure Development environment

  • Configure GitHub Codespaces or the equivalent(Cloud9, etc)
  • Create acaffold for the structure of project:makefile,requirements.txt
  • Optional (setup virtualenv) (install ipython outside of requirements.txt)
    virtualenv ~/.venv vim ~/.bashrc source ~/venv/bin/activate

Step2: Get interactive debugging working

  • Use IPython and ipdb

    x = 1
    y = 2
    import ipdb; ipdb.set_trace()
    print(x + y)

Step3: Build a library and use it