Re: [Tutor] A required question

2018-11-26 Thread Mats Wichmann
On 11/25/18 8:54 PM, Asokan Pichai wrote: > On Sat, Nov 24, 2018, 14:33 Avi Gross >> David, >> >> As I suspected. Yes, I am aware how to do those things. Just wondered if >> anyone automated the process so a fairly simple interface worked. >> > Does the requirements.txt file (associated with pip

Re: [Tutor] A required question

2018-11-25 Thread Asokan Pichai
> I am dropping the request. > > Avi > > -Original Message- > From: Tutor On Behalf Of > David Rock > Sent: Friday, November 23, 2018 9:28 PM > To: Tutor Python > Subject: Re: [Tutor] A required question > > > > On Nov 23, 2018, at 09:35, Alan G

Re: [Tutor] A required question

2018-11-24 Thread Avi Gross
Python Subject: Re: [Tutor] A required question > On Nov 23, 2018, at 09:35, Alan Gauld via Tutor wrote: > > On 23/11/2018 05:34, Avi Gross wrote: >> What I was thinking was the ability to do something like this: >> >> import ReChoir as require >> >>

Re: [Tutor] A required question

2018-11-24 Thread Avi Gross
at " + str(var)) except: print("NOT FOUND") print("Module needs loading: " + modulosity) import os os.system("python -m pip install " + modulosity) exec(f"import {modulosity}") I am sure something is doable and can be made into a proper

Re: [Tutor] A required question

2018-11-23 Thread David Rock
> On Nov 23, 2018, at 09:35, Alan Gauld via Tutor wrote: > > On 23/11/2018 05:34, Avi Gross wrote: >> What I was thinking was the ability to do something like this: >> >> import ReChoir as require >> >> require.version(condition, before=True, after=False) >> require.modules(module list, recurs

Re: [Tutor] A required question

2018-11-23 Thread Alan Gauld via Tutor
On 23/11/2018 05:34, Avi Gross wrote: > Just to be different, and perhaps return to the purpose of this group, Actually I think the higher level debate of Python's direction as a teaching language is entirely appropriate for this group. It kind of defines the group and and its current and future r

[Tutor] A required question

2018-11-23 Thread Avi Gross
Just to be different, and perhaps return to the purpose of this group, I have a question. Is there some functionality available in Python that you could put in the beginning of a program so it aborts with a message if the version of R being run is not acceptable? Let me elaborate. There