From kirby.urner at gmail.com Fri Nov 3 12:11:26 2017 From: kirby.urner at gmail.com (kirby urner) Date: Fri, 3 Nov 2017 09:11:26 -0700 Subject: [Edu-sig] congrats to SciPyLA (Latin America) on nailing dates Message-ID: Followup: https://mail.python.org/pipermail/python-cuba/2017-November/000290.html I would argue that a contemporary Python workstation, appropriately beefed up with software libre, ala numpy / scipy, has enough embedded graphics capability to hold the fort. https://flic.kr/p/D17NrN (screen shot: Spyder with embedded plots in the REPL) A billboard campaign aimed at getting numpy in high schools, would make a lot of sense. I press my case on Math Forum: http://mathforum.org/kb/message.jspa?messageID=10273676 The curriculum stays weak to the extent we expect "technology in the classroom" to mean calculators. Kirby -------------- next part -------------- An HTML attachment was scrubbed... URL: From aivar.annamaa at ut.ee Tue Nov 7 06:25:00 2017 From: aivar.annamaa at ut.ee (Aivar Annamaa) Date: Tue, 7 Nov 2017 13:25:00 +0200 Subject: [Edu-sig] How to define "a Python project"? Message-ID: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> Hi! Python programs which involve a single *.py file are easy to manage -- eg. it's clear what is meant with "opening" or "running" the program. In case of larger programs or in the context of a course (sequence of exercises) it would make sense to somehow group a bunch of Python (and other) files. Matthew Jadud recently brought this up in Microbit list (See "2. Projects vs. Files" in https://mail.python.org/pipermail/microbit/2017-October/001721.html). I'm considering adding the (optional) concept of "project" into my Python IDE (http://thonny.org). In my current vision this would bring: * an extra pane showing the files of the project * actions "Create project..." and "Select project..." * actions "Import project ..." and "Export project..." o Target could be GitHub, EduGit, zip-file, FTP, another folder, ... * Bonus: In case of projects originating from Git there could be also "Sync" action. Can you point out some good examples of Python project management? What could be good format for defining the project? Just a folder? A folder with a configuration file or subfolder? __init__.py? __main__.py? setup.py? .git? Something else? Teachers could prepare and distribute starter projects. What are the things that could go there besides library code and templates? Test cases? Linter configuration? Something else? Any other thoughts regarding Python projects in the educational context? How do your students transfer files between computer lab and their home computers? How do they submit code? Would the concept or "project" simplify this? best regards, Aivar Annamaa -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Tue Nov 7 07:30:19 2017 From: wes.turner at gmail.com (Wes Turner) Date: Tue, 7 Nov 2017 07:30:19 -0500 Subject: [Edu-sig] How to define "a Python project"? In-Reply-To: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> References: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> Message-ID: Cookiecutter builds project directories: https://github.com/audreyr/cookiecutter https://cookiecutter.readthedocs.io/en/latest/readme.html#available-cookiecutters On Tuesday, November 7, 2017, Aivar Annamaa wrote: > Hi! > > Python programs which involve a single *.py file are easy to manage -- eg. > it's clear what is meant with "opening" or "running" the program. > > In case of larger programs or in the context of a course (sequence of > exercises) it would make sense to somehow group a bunch of Python (and > other) files. Matthew Jadud recently brought this up in Microbit list (See > "2. Projects vs. Files" in https://mail.python.org/ > pipermail/microbit/2017-October/001721.html). > > I'm considering adding the (optional) concept of "project" into my Python > IDE (http://thonny.org). In my current vision this would bring: > > - an extra pane showing the files of the project > - actions "Create project..." and "Select project..." > - actions "Import project ..." and "Export project..." > - Target could be GitHub, EduGit, zip-file, FTP, another folder, ... > - Bonus: In case of projects originating from Git there could be > also "Sync" action. > > Can you point out some good examples of Python project management? > > What could be good format for defining the project? Just a folder? A > folder with a configuration file or subfolder? __init__.py? __main__.py? > setup.py? .git? Something else? > > Teachers could prepare and distribute starter projects. What are the > things that could go there besides library code and templates? Test cases? > Linter configuration? Something else? > Any other thoughts regarding Python projects in the educational context? > > How do your students transfer files between computer lab and their home > computers? How do they submit code? > https://nbgrader.readthedocs.io/en/stable/ https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#tag-events > > Would the concept or "project" simplify this? > Many cookiecutter templates include a Makefile to which a 'submit code' task could be added. DevPi can run tests on package upload: https://devpi.net/docs/devpi/devpi/stable/%2Bd/index.html https://devpi.net/docs/devpi/devpi/stable/+doc/userman/devpi_misc.html#jenkins-integration ... https://github.com/quobit/awesome-python-in-education/blob/master/README.md#jupyter -------------- next part -------------- An HTML attachment was scrubbed... URL: From jshaffstall at gmail.com Tue Nov 7 08:47:19 2017 From: jshaffstall at gmail.com (Jay Shaffstall) Date: Tue, 7 Nov 2017 08:47:19 -0500 Subject: [Edu-sig] How to define "a Python project"? In-Reply-To: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> References: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> Message-ID: > How do your students transfer files between computer lab and their home computers? How do they submit code? Would the concept or "project" simplify this? For the intro class in which I use Thonny, students use USB sticks to copy files and submit via a Blackboard course. The concept of a project would not really affect this. For later courses we use submission of projects via version control, but we're not using Thonny by then. If you add projects to Thonny, please leave the option to just create and run a single Python module, rather than requiring a project be created. Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: From calcpage at aol.com Wed Nov 8 15:57:51 2017 From: calcpage at aol.com (A Jorge Garcia) Date: Wed, 08 Nov 2017 15:57:51 -0500 Subject: [Edu-sig] How to define "a Python project"? In-Reply-To: <13f193b5-df4f-4215-bf78-f87412f57ef1@aol.com> References: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> <13f193b5-df4f-4215-bf78-f87412f57ef1@aol.com> Message-ID: BTW, AJG stands for Alvar Jorge Garcia. Do I see another Alvar in this thread? ?Sent from BlueMail ? On Nov 8, 2017, 3:56 PM, at 3:56 PM, A Jorge Garcia wrote: >Sage Worksheet or Jupyter Notebook files on cocalc.com > >Repl.it or c9.io could be used for python too > >No usb drive needed, students save and do their work in the cloud >(cocalc is on GCP, other sites are on AWS) and work in the same >environment at home as in class. > >HTH, >AJG > >?Sent from BlueMail ? > >On Nov 8, 2017, 3:19 PM, at 3:19 PM, Jay Shaffstall > wrote: >>> How do your students transfer files between computer lab and their >>home >>computers? How do they submit code? Would the concept or "project" >>simplify >>this? >> >>For the intro class in which I use Thonny, students use USB sticks to >>copy >>files and submit via a Blackboard course. The concept of a project >>would >>not really affect this. >> >>For later courses we use submission of projects via version control, >>but >>we're not using Thonny by then. >> >>If you add projects to Thonny, please leave the option to just create >>and >>run a single Python module, rather than requiring a project be >created. >> >>Jay >> >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>Edu-sig mailing list >>Edu-sig at python.org >>https://mail.python.org/mailman/listinfo/edu-sig -------------- next part -------------- An HTML attachment was scrubbed... URL: From calcpage at aol.com Wed Nov 8 15:56:43 2017 From: calcpage at aol.com (A Jorge Garcia) Date: Wed, 08 Nov 2017 15:56:43 -0500 Subject: [Edu-sig] How to define "a Python project"? In-Reply-To: References: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> Message-ID: <13f193b5-df4f-4215-bf78-f87412f57ef1@aol.com> Sage Worksheet or Jupyter Notebook files on cocalc.com Repl.it or c9.io could be used for python too No usb drive needed, students save and do their work in the cloud (cocalc is on GCP, other sites are on AWS) and work in the same environment at home as in class. HTH, AJG ?Sent from BlueMail ? On Nov 8, 2017, 3:19 PM, at 3:19 PM, Jay Shaffstall wrote: >> How do your students transfer files between computer lab and their >home >computers? How do they submit code? Would the concept or "project" >simplify >this? > >For the intro class in which I use Thonny, students use USB sticks to >copy >files and submit via a Blackboard course. The concept of a project >would >not really affect this. > >For later courses we use submission of projects via version control, >but >we're not using Thonny by then. > >If you add projects to Thonny, please leave the option to just create >and >run a single Python module, rather than requiring a project be created. > >Jay > > >------------------------------------------------------------------------ > >_______________________________________________ >Edu-sig mailing list >Edu-sig at python.org >https://mail.python.org/mailman/listinfo/edu-sig -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Wed Nov 8 17:13:42 2017 From: wes.turner at gmail.com (Wes Turner) Date: Wed, 8 Nov 2017 17:13:42 -0500 Subject: [Edu-sig] How to define "a Python project"? In-Reply-To: References: <7b442187-2fe3-ce5c-7374-c7c62460e79c@ut.ee> Message-ID: Spyder also has project support: https://pythonhosted.org/spyder/projects.html https://github.com/spyder-ide/spyder https://github.com/spyder-ide/spyder/tree/master/spyder/widgets/projects https://github.com/spyder-ide/spyder/tree/master/spyder/widgets/projects/tests https://github.com/spyder-ide/spyder/wiki/SEP-3:-Projects On Tuesday, November 7, 2017, Wes Turner wrote: > Cookiecutter builds project directories: > > https://github.com/audreyr/cookiecutter > > https://cookiecutter.readthedocs.io/en/latest/readme.html#available- > cookiecutters > > On Tuesday, November 7, 2017, Aivar Annamaa > wrote: > >> Hi! >> >> Python programs which involve a single *.py file are easy to manage -- >> eg. it's clear what is meant with "opening" or "running" the program. >> >> In case of larger programs or in the context of a course (sequence of >> exercises) it would make sense to somehow group a bunch of Python (and >> other) files. Matthew Jadud recently brought this up in Microbit list (See >> "2. Projects vs. Files" in https://mail.python.org/piperm >> ail/microbit/2017-October/001721.html). >> >> I'm considering adding the (optional) concept of "project" into my Python >> IDE (http://thonny.org). In my current vision this would bring: >> >> - an extra pane showing the files of the project >> - actions "Create project..." and "Select project..." >> - actions "Import project ..." and "Export project..." >> - Target could be GitHub, EduGit, zip-file, FTP, another folder, ... >> - Bonus: In case of projects originating from Git there could be >> also "Sync" action. >> >> Can you point out some good examples of Python project management? >> >> What could be good format for defining the project? Just a folder? A >> folder with a configuration file or subfolder? __init__.py? __main__.py? >> setup.py? .git? Something else? >> >> Teachers could prepare and distribute starter projects. What are the >> things that could go there besides library code and templates? Test cases? >> Linter configuration? Something else? >> Any other thoughts regarding Python projects in the educational context? >> >> How do your students transfer files between computer lab and their home >> computers? How do they submit code? >> > > https://nbgrader.readthedocs.io/en/stable/ > > https://docs.gitlab.com/ce/user/project/integrations/ > webhooks.html#tag-events > > >> >> Would the concept or "project" simplify this? >> > > Many cookiecutter templates include a Makefile to which a 'submit code' > task could be added. > > DevPi can run tests on package upload: > https://devpi.net/docs/devpi/devpi/stable/%2Bd/index.html > > https://devpi.net/docs/devpi/devpi/stable/+doc/userman/ > devpi_misc.html#jenkins-integration > > ... > > https://github.com/quobit/awesome-python-in-education/ > blob/master/README.md#jupyter > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby.urner at gmail.com Thu Nov 16 16:59:28 2017 From: kirby.urner at gmail.com (kirby urner) Date: Thu, 16 Nov 2017 13:59:28 -0800 Subject: [Edu-sig] discrete math track (high school) + a sieve Message-ID: We've maybe seen this sieve before on edu-sig but I don't remember for sure, and just came across it following links from Guido's blog. So pithy! # -*- coding: utf-8 -*- """ Created on Thu Nov 16 13:23:51 2017 Copied from: http://www.mypy-lang.org/examples.html """ import itertools def iter_primes(): # An iterator of all numbers between 2 and # +infinity numbers = itertools.count(2) # Generate primes forever while True: # Get the first number from the iterator # (always a prime) prime = next(numbers) yield prime # This code iteratively builds up a chain # of filters... numbers = filter(prime.__rmod__, numbers) for p in iter_primes(): if p > 1000: break print(p) ------- Also, anyone interested in debates regarding the future of high school math might be interested in math-teach, likely to be frozen and/or disappeared come first of next year. Lots of politics (I'm not a listowner nor on staff, have limited insight, see 2nd link below): http://mathforum.org/kb/message.jspa?messageID=10283328 https://www.nctm.org/News-and-Calendar/Messages-from-the-President/Archive/Matt-Larson/NCTM-and-The-Math-Forum/ Kirby -------------- next part -------------- An HTML attachment was scrubbed... URL: