Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Generate direct embeddings #1

Open
kevinlin1 opened this issue Mar 30, 2019 · 1 comment
Open

Generate direct embeddings #1

kevinlin1 opened this issue Mar 30, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@kevinlin1
Copy link
Owner

kevinlin1 commented Mar 30, 2019

Instead of embedding an iframe, generate a direct embedding. This will improve page loads, reduce flash-in and improve embed reliability, and enable offline persistence for PWAs that want it.

This solution should also allow embeds to support other languages and reduce reliance on any particular server's PythonTutor implementation.

@kevinlin1 kevinlin1 added the enhancement New feature or request label Mar 30, 2019
@kevinlin1
Copy link
Owner Author

The most universal and language-independent method for doing this is to add the PythonTutor client-side JavaScript for processing PythonTutor JSON into visualizations. aegamesi/java-visualizer-intellij-plugin provides some groundwork.

Then, to make a direct embedding, the website developer runs a PythonTutor JSON generator on their local system and pastes the resulting JSON string into their document. Not the most streamlined solution but it also doesn't depend on external libraries (that wouldn't fit into the existing Jekyll workflow) to execute code and generate an execution trace.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant