File tree Expand file tree Collapse file tree 4 files changed +65
-0
lines changed
Expand file tree Collapse file tree 4 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ # Python 2 with ` runtime.txt `
2+
3+ We can specify various runtime parameters with a ` runtime.txt ` file. In this
4+ repository, we demonstrate how to install python 2 with this environment.
5+
6+ [ ![ Binder] ( http://mybinder.org/badge.svg )] ( http://beta.mybinder.org/v2/gh/binder-examples/python2_runtime/master )
Original file line number Diff line number Diff line change 1+ {
2+ "cells" : [
3+ {
4+ "cell_type" : " code" ,
5+ "execution_count" : null ,
6+ "metadata" : {},
7+ "outputs" : [],
8+ "source" : [
9+ " import numpy as np\n " ,
10+ " import matplotlib.pyplot as plt\n " ,
11+ " import sys\n " ,
12+ " \n " ,
13+ " plt.ion()"
14+ ]
15+ },
16+ {
17+ "cell_type" : " code" ,
18+ "execution_count" : null ,
19+ "metadata" : {},
20+ "outputs" : [],
21+ "source" : [
22+ " print(sys.version)"
23+ ]
24+ },
25+ {
26+ "cell_type" : " code" ,
27+ "execution_count" : null ,
28+ "metadata" : {},
29+ "outputs" : [],
30+ "source" : [
31+ " plt.plot(*np.random.randn(2, 1000))"
32+ ]
33+ }
34+ ],
35+ "metadata" : {
36+ "kernelspec" : {
37+ "display_name" : " Python 3" ,
38+ "language" : " python" ,
39+ "name" : " python3"
40+ },
41+ "language_info" : {
42+ "codemirror_mode" : {
43+ "name" : " ipython" ,
44+ "version" : 3
45+ },
46+ "file_extension" : " .py" ,
47+ "mimetype" : " text/x-python" ,
48+ "name" : " python" ,
49+ "nbconvert_exporter" : " python" ,
50+ "pygments_lexer" : " ipython3" ,
51+ "version" : " 3.6.2"
52+ }
53+ },
54+ "nbformat" : 4 ,
55+ "nbformat_minor" : 2
56+ }
Original file line number Diff line number Diff line change 1+ numpy
2+ matplotlib
Original file line number Diff line number Diff line change 1+ python-2.7
You can’t perform that action at this time.
0 commit comments