Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 18dc5ea

Browse files
committed
Show in Codelens respects the python3 flag now.
1 parent e816ed8 commit 18dc5ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runestone/activecode/js/activecode.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,11 @@ ActiveCode.prototype.showCodelens = function () {
411411
myVars.textReferences = false;
412412
myVars.showOnlyOutputs = false;
413413
myVars.rawInputLstJSON = JSON.stringify([]);
414-
myVars.py = 2;
414+
if (this.python3) {
415+
myVars.py = 3;
416+
} else {
417+
myVars.py = 2;
418+
}
415419
myVars.curInstr = 0;
416420
myVars.codeDivWidth = 350;
417421
myVars.codeDivHeight = 400;

0 commit comments

Comments
 (0)