How To Specify Version of Python in Binder/Notebook?

Hi, how do I ensure that my binder/notebook uses a specific version of python? e.g. 3.8?

One option is to use conda to specify version. An example on using conda for binder is here: Sample Binder Repositories — Binder 0.1b documentation - just modify the environment.yml file to include - python>=3.5 pin or (similar).

2 Likes

The other option is to use a runtime.txt as documented here Configuration Files — Binder 0.1b documentation

3 Likes