Hi David, On Sat, 16 Nov 2019 22:20:30 +0000 "David R. Pugh via discuss" <[email protected]> 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 agree. Nowadays they are, thus my idea about at least make them "conda activate" once, even for the base environment, with a brief qualitative explanation. > 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/ Really interesting. Both lessons look really good on a first sight. Many thanks for sharing! > I recognize that this approach might not work for every audience, but > it might be useful for target audiences similar to mine. I think they are more suited for people with some computing / coding background... which happens to be my case. I'll most likely use them shortly. Again, thanks for sharing them! BTW I think that this should somehow be included into the anaconda / jupyter "how to" part, even if it's not formally taught. Cheers, Iñigo > Cheers, > > David > > Sent from ProtonMail Mobile > > On Sat, Nov 16, 2019 at 05:59, Michael Sarahan <[email protected]> > 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 > > <[email protected]> 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 > >> <[email protected]> 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 > >>> <[email protected]>: > >>> > 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](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-Md0ac8c03f4375ed2dde35759) > > > ------------------------------------------ > The Carpentries: discuss > Permalink: > https://carpentries.topicbox.com/groups/discuss/T9bb18732d8abc483-M6b9c5c296361459043f52f8f > Delivery options: > https://carpentries.topicbox.com/groups/discuss/subscription ------------------------------------------ The Carpentries: discuss Permalink: https://carpentries.topicbox.com/groups/discuss/T9bb18732d8abc483-M0f842dc6bbac0091deff13f7 Delivery options: https://carpentries.topicbox.com/groups/discuss/subscription
