workshop-template icon indicating copy to clipboard operation
workshop-template copied to clipboard

Replaces anaconda python installation with miniforge

Open dpshelio opened this issue 1 year ago • 4 comments
trafficstars

Due to the anaconda ToS changes, using conda-forge avoids that learners may be in breach of the ToS after they leave the workshop. This has been discussed in Carpentries #genral Slack and a pip alternative is provided at #837.

It provides instructions to create a swc environment is created with the basic needs for the workshops (includes explicitly both numpy for the inflammation lesson and pandas for the gapminder).

This, however, has the added difficulty to require that learners change environment (conda activate swc) and start jupyter from the terminal and not from a launcher (as anaconda provides for Windows and macOS).

I've tried to find up a way to get jupyter installed in the base env, and provide instructions to create a shortcut, but it becomes too cumbersome, plus it would only benefit Windows users. A comment has been left there to inform future attempts.

dpshelio avatar Sep 06 '24 17:09 dpshelio

Deploy Preview for workshop-template-previews ready!

Name Link
Latest commit b431eaf1bdac447e6fef69c900009b0fd7f1d371
Latest deploy log https://app.netlify.com/sites/workshop-template-previews/deploys/67225d43e050d10008e6a953
Deploy Preview https://deploy-preview-839--workshop-template-previews.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Sep 06 '24 17:09 netlify[bot]

@dpshelio Given our workshops generally teach basic shell CLI (using git-bash on Windows, Terminal on MacOS, bash on Linux), I think it's OK to ask people to launch jupyter lab from the CLI. That also makes sure their CWD is in the "right" place vs. having to show them how to navigate back to their Desktop in Windows when using the launcher.

n2ygk avatar Sep 06 '24 17:09 n2ygk

@n2ygk I also think it's not too much of a cognitive load to launch from the terminal, and it also avoids the problem we've encountered a few times with Windows where learners don't recognise the directories Jupyter is showing (normally on computers that got two user directory structure due to onedrive, and Jupyter opening the "standard" user profile and not the one the user is familiar with which normally is onedrive's).

dpshelio avatar Sep 06 '24 18:09 dpshelio

Thank you for submitting this @dpshelio. We established a task force to update the lesson setup instructions, and I would like to wait until that group has had time to consider the various different options, before implementing any change. The task force's decision will be made in the next month or so.

tobyhodges avatar Sep 23 '24 12:09 tobyhodges

I would like to make these updates ASAP so I will merge this now and apply my changes afterwards. Thanks again for contributing this @dpshelio ❤️

tobyhodges avatar Mar 14 '25 13:03 tobyhodges