Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the html elements as a template needed for Brython #4

Merged
merged 1 commit into from
Jun 15, 2021

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
1 participant