binder-examples/python2_with_3

Name: python2_with_3

Owner: Binder Examples

Description: A repository to demonstrate simultaneous python 2 and 3 kernels

Created: 2017-12-09 00:34:47.0

Updated: 2017-12-09 00:50:57.0

Pushed: 2017-12-11 23:44:54.0

Homepage: null

Size: 73

Language: Jupyter Notebook

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Mixing Python 2 and 3 kernels with runtime.txt

Binder

Sometimes you want both Python 2 and Python 3 (e.g., if you have a mixture of notebooks that use each version of the language). This repository demonstrates how to handle these cases with repo2docker. You can specify a Python 2.7 environment with the runtime.txt file. In this case, repo2docker will install Python 2 alongside Python 3 (though all commands will default to Python 2). In this case, you can install Python 3 dependencies with requirements3.txt, while a file called requirements.txt alone will install to the Python 2 environment.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.