Hi David,

I just wanted to say thank you for sharing these materials.

I totally agree that an understanding of environments is vital for anyone
who would like to make their code as reproducible as possible.

I'm just very cautious about adding to the cognitive load of learners that
are total beginners during a two-day workshop.

But we're going to give a "Python 102" session tomorrow after our workshop
this weekend, based on https://python-102.readthedocs.io
(which I found via https://merely-useful.github.io/rse/rse-package-py.html)

We will need to explain environments, so we will definitely make use of
your conda lessons there.

Thanks!

David Nicholson, Ph.D.
https://nicholdav.info/
https://github.com/NickleDave
Prinz lab <http://www.biology.emory.edu/research/Prinz/>, Emory University,
Atlanta, GA, USA


On Sat, Nov 16, 2019 at 5:21 PM David R. Pugh via discuss <
discuss@lists.carpentries.org> wrote:

>
> Very interesting discussion! I teach the python-novice-gapminder lessons
> about 4 times a year at King Abdullah University if Science and Technology
> (KAUST) where target audience is graduate students, post-docs and other
> researchers.
>
> I take a different approach to the conda base environment issue and conda
> environments in general. IMHO virtual environments are such a critical part
> of the Python workflow that learners should be exposed to them from the
> beginning.
>
> I encourage users to install Miniconda and not Anaconda. Then I explain
> the environment management and package management problems and how conda
> solves them both. Finally I walk learners through the process of creating
> an environment file for the lesson, building the environment from the file,
> and then activating the environment.
>
> Here is link to the episode that I teach about Conda.
>
>
> https://kaust-vislab.github.io/python-novice-gapminder/00-getting-started-with-conda/index.html
>
> The above episode is a condensed version of a half day lesson on Conda
> that I have developed.
>
> https://kaust-vislab.github.io/introduction-to-conda-for-data-scientists/
>
> I recognize that this approach might not work for every audience, but it
> might be useful for target audiences similar to mine.
>
> Cheers,
>
> David
>
> Sent from ProtonMail Mobile
>
>
> On Sat, Nov 16, 2019 at 05:59, Michael Sarahan <msara...@gmail.com> wrote:
>
> > no env should be activated by default and that you should deliberately
> activate it, even base
>
> There's a config setting for this:
>
> conda config --set auto_activate_base false
>
> I share your sentiment, but unfortunately the past haunts us and it'll be
> very hard to change expectations to explicitly require manual activation.
> Someday, when there are no other more pressing issues to deal with...
>
> On Fri, Nov 15, 2019 at 3:56 PM Inigo Aldazabal Mensa
> <inigo_aldaza...@ehu.eus> wrote:
>
>> Well, for the lessons indeed we just need base, but should learners
>> progress any further after the lessons, they would likely find /
>> use / learn about envs, so the prompt indication I think it should be
>> there for them, yes.
>>
>> Cheers,
>>
>> Iñigo
>>
>> On Fri, 15
>> Nov 2019 21:12:39 +0000 (UTC) Tomás Di Domenico via discuss
>> <discuss@lists.carpentries.org> wrote:
>>
>> > Right, yes, I thought you just needed base, no use if you actually
>> > use other envs.
>> > Cheers,
>> > Tomás
>> >
>> > Nov 15, 2019 22:00:40 Inigo Aldazabal Mensa <inigo_aldaza...@ehu.eus>:
>> >
>> > > Hi Tomás,
>> > >
>> > > On Fri, 15 Nov 2019 15:31:06 +0100
>> > > Tomás Di Domenico via discuss
>> > >  wrote:
>> > >
>> > > > Hi Iñigo.
>> > > > You could also use this to prevent conda from modifying the
>> > > > prompt: conda config --set changeps1 False
>> > > > Then you would have base activated and conda's Python available,
>> > > > but no visual disruption. Best,
>> > >
>> > > Thanks for the tip, but then you don't know which env you are
>> > > working in.
>> > >
>> > >
>> > > Iñigo
>> > >
>> > >
>> > > > Tomás
>> > > > On 15/11/2019 15:16, Inigo Aldazabal Mensa wrote:
>> > > > > Hi all,
>> > > > >
>> > > > > As we are getting ready for our incoming couple of workshops I
>> > > > > can not make my mind clear about Linux Python installation using
>> > > > > Anaconda. Let's see...
>> > > > >
>> > > > > Following the workshop webpage instructions definitely does not
>> > > > > work as if you leave the last question, not mentioned in the
>> > > > > guide, as by default :
>> > > > >
>> > > > > Do you wish the installer to initialize Anaconda3
>> > > > > by running conda init? [yes|no]
>> > > > > [no] >>>
>> > > > >
>> > > > > you don't get conda's python "activated".
>> > > > >
>> > > > > If you answer "yes" to this, then you have the (base)
>> > > > > environment *always* appearing in new terminal sessions, which
>> > > > > I think it will create confusion in the previous bash session.
>> > > > >
>> > > > >
>> > > > > I'm planning about modifying the instructions so that you say
>> > > > > "yes" to the "conda init", followed by typing:
>> > > > >
>> > > > > conda config --set auto_activate_base false
>> > > > >
>> > > > >
>> > > > > Now, in the Python lesson setup we  should instruct to do "conda
>> > > > > activate" first, and explain that is a kind of "magic" in order
>> > > > > to have python active.
>> > > > >
>> > > > >
>> > > > > How are you dealing with this in your workshops?
>> > > > >
>> > > > >
>> > > > > Bests,
>> > > > >
>> > > > > Iñigo
>> > > > >
>> > > > > PS: I guess this applies also to MacOS, and I have yet to go
>> > > > > through the Windows installation instructions...
>> > > > >
>> > > > ------------------------------------------
>> > > > The Carpentries: discuss
>> > > > Permalink:
>> > > > https://carpentries.topicbox.com/groups/discuss/T9bb18732d8abc48
>> > > > 3-M8564ef6c7374536399c13148 Delivery options:
>> > > > https://carpentries.topicbox.com/groups/discuss/subscript ion
>> >
>> > ------------------------------------------
>> > The Carpentries: discuss
>> > Permalink:
>> >
>> https://carpentries.topicbox.com/groups/discuss/T9bb18732d8abc483-Maa9b924a2bc982a74d340f1e
>> > Delivery options:
>> > https://carpentries.topicbox.com/groups/discuss/subscription
>>
>> ------------------------------------------
>> The Carpentries: discuss
>> Permalink:
>> https://carpentries.topicbox.com/groups/discuss/T9bb18732d8abc483-M9c62ef80145e20fff820d37c
>> Delivery options:
>> https://carpentries.topicbox.com/groups/discuss/subscription
>>
>
>
> *The Carpentries <https://carpentries.topicbox.com/latest>* / discuss /
> see discussions <https://carpentries.topicbox.com/groups/discuss> +
> participants <https://carpentries.topicbox.com/groups/discuss/members> + 
> delivery
> options <https://carpentries.topicbox.com/groups/discuss/subscription>
> Permalink
> <https://carpentries.topicbox.com/groups/discuss/T9bb18732d8abc483-M6b9c5c296361459043f52f8f>
>

------------------------------------------
The Carpentries: discuss
Permalink: 
https://carpentries.topicbox.com/groups/discuss/T9bb18732d8abc483-Ma6893005a9558d374c77435a
Delivery options: https://carpentries.topicbox.com/groups/discuss/subscription

Reply via email to