GithubHelp home page GithubHelp logo

pycam / python-functions-and-modules Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 15.0 1.34 MB

Python3 teaching materials for functions and modules (1 day)

Home Page: http://pycam.github.io/

License: The Unlicense

Jupyter Notebook 86.83% Python 12.13% Shell 1.04%
jupyter python training-materials

python-functions-and-modules's People

Contributors

alanwilter avatar asmmhossain avatar gbunkoczi avatar grsr avatar inesdesantiago avatar molnardavid avatar pajanne avatar semacu avatar tjs23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-functions-and-modules's Issues

Module

only one file to import, simple way.

more about BioPython?

BioConda - brilliant. Super powerful, more than Python. For Bioinformatics.

One exercise

Base the entire course on one exercise with logical connection with everything.

Function that become module -- which use cases?
Building module gradually
Nothing trivial which could be solved in excel

Rephrase ex 1.1

Exercises 1.1

We are going to look at a Gapminder dataset, made famous by Hans Rosling from the Ted presentation ‘The best stats you’ve ever seen’.

    Read the dataset from the file data/gapminder.txt
    Find what are the oldest and youngest years in the dataset programatically
    Calculate average life expectancy as well as global population increase between these two years
    Find which country has the lowest life expectancy in 2002

Not clear: 'Find what are the oldest and youngest years in the dataset programatically'
Repharse it.

Function

It should go back to the first two days courses.
We should start with function!

Introduction

Discussion about python-functions-and-modules/python_fm_1.ipynb

Crashed course before?
Idea to send an email to participant before.
Link to crash course for participants to look before?
Update the description of the course to make sure participants know Python before coming to this course.

Should be given in less than one hour.
Update text to make it clearer.

Libraries to teach

BioPython
and Mathplotlib to be expendanted
Spend more time on these libraries

Restructuring course

Only BioPython and matplotlib
Remove building module yourself

Create maybe a thrird potential course - with one exercise building up and creating your own and publishing it

Update original course to this new one day course on functions and modules

Possibles sessions:

  • session1 : python basic - datatypes and collections, conditions, loops and files + a recap exercise
  • session2 : functions - writing reusable code within your own script (old day2_session1)
  • session3 : modules - writing reusable library and using existing ones os, csv (old day2_session2&3)
  • session4: using external libraries - biopython (old day2_session4) and maybe another one

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.