File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ export default class BrythonActiveCode extends ActiveCode {
2424 prog = `
2525 <html>
2626 <head>
27- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.9.4 /brython.min.js"></script>
28- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.9.4 /brython_stdlib.min.js"></script>
27+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.9.5 /brython.min.js"></script>
28+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.9.5 /brython_stdlib.min.js"></script>
2929 <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/styles/default.min.css">
3030 <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/highlight.min.js"></script>
3131 <style>
@@ -105,8 +105,8 @@ def my_exec(code):
105105
106106 document <= container
107107
108- my_exec(""" ${ prog }
109- """ )
108+ my_prog = ${ JSON . stringify ( prog ) }
109+ my_exec(my_prog )
110110
111111document <= html.SCRIPT("hljs.highlightAll();")
112112document <= html.SCRIPT("let container = document.querySelector('.container-pre'); let height = container.offsetHeight; document.body.style.paddingBottom = String(height)+'px';")
You can’t perform that action at this time.
0 commit comments