Skip to content

Commit bc66ed2

Browse files
committed
added experimental py3anaconda option for running Python with Anaconda
1 parent 894dd04 commit bc66ed2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

v5-unity/js/pytutor.ts

+5
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export class ExecutionVisualizer {
218218
// and to display the proper language in langDisplayDiv:
219219
// 'py2' for Python 2, 'py3' for Python 3, 'js' for JavaScript, 'java' for Java,
220220
// 'ts' for TypeScript, 'ruby' for Ruby, 'c' for C, 'cpp' for C++
221+
// 'py3anaconda' for Python 3 with Anaconda
221222
// [default is Python-style labels]
222223
constructor(domRootID, dat, params) {
223224
this.curInputCode = dat.code.rtrim(); // kill trailing spaces
@@ -3338,6 +3339,8 @@ class CodeDisplay {
33383339
pyVer = 'java';
33393340
} else if (lang === 'py3') {
33403341
pyVer = '3';
3342+
} else if (lang === 'py3anaconda') {
3343+
pyVer = 'py3anaconda';
33413344
} else if (lang === 'c') {
33423345
pyVer = 'c';
33433346
} else if (lang === 'cpp') {
@@ -3368,6 +3371,8 @@ class CodeDisplay {
33683371
this.domRoot.find('#langDisplayDiv').html('Python 2.7');
33693372
} else if (lang === 'py3') {
33703373
this.domRoot.find('#langDisplayDiv').html('Python 3.6');
3374+
} else if (lang === 'py3anaconda') {
3375+
this.domRoot.find('#langDisplayDiv').html('Python 3.6 with <a target="_blank" href="https://docs.anaconda.com/anaconda/">Anaconda 5.2</a><br/><font color="#e93f34">EXPERIMENTAL!</font>');
33713376
} else if (lang === 'c') {
33723377
if (this.owner.params.embeddedMode) {
33733378
this.domRoot.find('#langDisplayDiv').html('C (gcc 4.8, C11)');

v5-unity/visualize.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!-- let Webpack take care of everything. Use the [hash] feature to
1616
create unique filenames for releases:
1717
https://webpack.github.io/docs/long-term-caching.html -->
18-
<script type="text/javascript" src="build/visualize.bundle.js?d0913ca14a" charset="utf-8"></script>
18+
<script type="text/javascript" src="build/visualize.bundle.js?0a2ce4b291" charset="utf-8"></script>
1919

2020
<!-- insert google-analytics.txt contents here -->
2121

@@ -47,6 +47,7 @@
4747
<select id="pythonVersionSelector">
4848
<option value="3" selected>Python 3.6</option>
4949
<option value="2">Python 2.7</option>
50+
<option value="py3anaconda">Python 3.6 Anaconda (EXPERIMENTAL!)</option>
5051
<option value="java">Java 8</option>
5152
<option value="c">C (gcc 4.8, C11)</option>
5253
<option value="cpp">C++ (gcc 4.8, C++11)</option>

0 commit comments

Comments
 (0)