Skip to content

Commit

Permalink
Whooo by using an old fork of PythonTutor, I have a working demo of l…
Browse files Browse the repository at this point in the history
…ocal PythonTutor for Py3K, but no other languages.

- See https://github.com/seamile/PyTutor/
  • Loading branch information
Naereen committed Feb 21, 2021
1 parent 84336f2 commit 190aebc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions local_python_tutor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# Author: Lilian BESSON, (C) 2021-
# Email: Lilian.BESSON[AT]crans[DOT]org
# Date: 21-02-2021.
# Web: https://bitbucket.org/lbesson/bin/src/master/local_python_tutor.sh

# local_python_tutor.sh: a script to launch an offline version of PythonTutor!
#
# Using a local clone of https://github.com/seamile/PyTutor/
# it works only with Python 3, visualize and live mode! but it's already greaaaat!
#
#
# Usage: $ local_python_tutor.sh
# TODO: adapt the path of the local clone, and once
# go there, and do
# $ cd v5-unity ; virtualenv ./env
# with Python 3
#
# Licence: MIT Licence (http://lbesson.mit-license.org).
#
version="0.1"

# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -eu
set -o pipefail

cd ~/publis/OCamlTutor.git/other_gits/seamile_PyTutor.git/v5-unity/
xdg-open http://localhost:8003/index.html

. ./env/bin/activate
./env/bin/python bottle_server.py

0 comments on commit 190aebc

Please sign in to comment.