Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demonstrate effect of conda activate #58

Open
lexnederbragt opened this issue Jan 8, 2021 · 1 comment
Open

Demonstrate effect of conda activate #58

lexnederbragt opened this issue Jan 8, 2021 · 1 comment

Comments

@lexnederbragt
Copy link

In 02-working-with-environments, around the first time conda activate is run, it would be beneficial to demonstrate the effect of the command by something like:

  • run $ python (to get into the interactive Python editor)
    *attempt to import a package so a ModuleNotFoundError appears
  • then run conda activate basic-scipy-env
  • now redo the import showing that the package now is there

This requires the package not to be installed in the base installation. Alternatively, different versions of Python can be used (the Python editor first shows which version is used).

@lexnederbragt lexnederbragt changed the title conda activate Demonstrate effect of conda activate Jan 8, 2021
@davidrpugh
Copy link
Collaborator

This is a great suggestion! I typically do this when I teach but for some reason never included it in the lesson materials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants