Skip to content

Conversation

@AngelaRemolina
Copy link
Owner

@AngelaRemolina AngelaRemolina commented Jun 10, 2021

This PR closes #1

I made a similar aproach to the template runestone uses when it runs with its directive :language: html on an activecode block (example).

You can compare the new file I created with this one that is the HTMLActiveCode root code. Mine is the same thing just adding what Brython needs on the html to properly run:

<body onload="brython()">
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.9.0/brython.min.js"></script>
    <script type="text/python" >
    # Here goes the python code that the user will put in the text area of the activecode block
   </script>

@AngelaRemolina AngelaRemolina merged commit 1725fe7 into master Jun 15, 2021
@AngelaRemolina AngelaRemolina deleted the brython-activecode-template branch June 18, 2021 21:29
reingart referenced this pull request in PyAr/RunestoneComponents Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create the Brython html template

2 participants