Skip to content
A repository to demonstrate simultaneous python 2 and 3 kernels
Jupyter Notebook
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Dec 9, 2017
LICENSE Create LICENSE Mar 26, 2019
README.md python 2 and 3 first try Dec 11, 2017
index2.ipynb python 2 and 3 first try Dec 11, 2017
index3.ipynb python 2 and 3 first try Dec 11, 2017
requirements.txt python 2 and 3 first try Dec 11, 2017
requirements3.txt python 2 and 3 first try Dec 11, 2017
runtime.txt python 2 and 3 first try Dec 11, 2017

README.md

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.

You can’t perform that action at this time.