Works great!
-
Thanks a lot this works perfectly.
I wanted to test running the Python REPL in a WordPress post, using the HTML code, but it threw errors:
JsException(PythonError: Traceback (most recent call last): File "/lib/python3.10/site-packages/_pyodide/_base.py", line 421, in eval_code CodeRunner( File "/lib/python3.10/site-packages/_pyodide/_base.py", line 237, in __init__ self.ast = next(self._gen) File "/lib/python3.10/site-packages/_pyodide/_base.py", line 141, in _parse_and_compile_gen mod = compile(source, filename, mode, flags | ast.PyCF_ONLY_AST) File "", line 1 print(‘Test your code here’) ^ SyntaxError: invalid character '‘' (U+2018) )
Until i installed this plugin.
Now the REPL runs within a WordPress post! Its crazy to think what Pyscript is now capable of! Before i had to put static code into my WP posts when writing a tutorial post, but now readers can test the code in real time.
Thanks a lot for the effort of putting this together
- The topic ‘Works great!’ is closed to new replies.