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

kevinlin1/jekyll-python-tutor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Jekyll Python Tutor

Automatically embed Python Tutor visualization buttons alongside your code listings.

See Java Crash Course for a live demo of the java_visualizer.html include. Each "Visualize Code" button is automatically generated from the preceding code listing.

Usage

Download the appropriate visualization embed from _includes into your Jekyll website's _includes folder. Then, follow the usage instructions in the file.

{%- capture HelloWorld -%}
print('Hello, world!')
{%- endcapture -%}
{% include pytutor_visualizer.html py="3" code=HelloWorld caption="Hello, world!" %}

The full list of py backend language flags can be found in Philip's repo.

{%- capture HelloWorld -%}
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
{%- endcapture -%}
{% include java_visualizer.html code=HelloWorld caption="Hello, world!" %}

About

A Jekyll include for embedding Online Python Tutor visualizations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy