@@ -218,6 +218,7 @@ export class ExecutionVisualizer {
218
218
// and to display the proper language in langDisplayDiv:
219
219
// 'py2' for Python 2, 'py3' for Python 3, 'js' for JavaScript, 'java' for Java,
220
220
// 'ts' for TypeScript, 'ruby' for Ruby, 'c' for C, 'cpp' for C++
221
+ // 'py3anaconda' for Python 3 with Anaconda
221
222
// [default is Python-style labels]
222
223
constructor ( domRootID , dat , params ) {
223
224
this . curInputCode = dat . code . rtrim ( ) ; // kill trailing spaces
@@ -3338,6 +3339,8 @@ class CodeDisplay {
3338
3339
pyVer = 'java' ;
3339
3340
} else if ( lang === 'py3' ) {
3340
3341
pyVer = '3' ;
3342
+ } else if ( lang === 'py3anaconda' ) {
3343
+ pyVer = 'py3anaconda' ;
3341
3344
} else if ( lang === 'c' ) {
3342
3345
pyVer = 'c' ;
3343
3346
} else if ( lang === 'cpp' ) {
@@ -3368,6 +3371,8 @@ class CodeDisplay {
3368
3371
this . domRoot . find ( '#langDisplayDiv' ) . html ( 'Python 2.7' ) ;
3369
3372
} else if ( lang === 'py3' ) {
3370
3373
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>' ) ;
3371
3376
} else if ( lang === 'c' ) {
3372
3377
if ( this . owner . params . embeddedMode ) {
3373
3378
this . domRoot . find ( '#langDisplayDiv' ) . html ( 'C (gcc 4.8, C11)' ) ;
0 commit comments