Brython as a Python 3 interpreter for activecode #489
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I created an optional argument for activecode blocks called python3_interpreter. It can be used writing something like this:
.. activecode::
:language: python3
:python3_interpreter: brython
I am working on a project called PyZombis. PyZombis is an spanish course to learn how to code in Python and it is being built using Runestone. We had issues making some advance exercises of the course that involves:
The third one might be solved using the [SQL activecode option (https://runestone.academy/runestone/books/published/instructorguide/ActiveCode/sql.html), but the first two could not be done with any of the Runestone's tool.
This PR gives a graphic alternative for runestone. The output shows an iframe in which you can append things with the browser module that Brython offers.
The inspiration for this has been taken from a previous PR in the depreciated runestone components, you can find it here: RunestoneInteractive/RunestoneComponents#1208
Here is a gif of how it works (on an exercises that works with the Facebook API showing public profile photos):