-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whooo by using an old fork of PythonTutor, I have a working demo of l…
…ocal PythonTutor for Py3K, but no other languages. - See https://github.com/seamile/PyTutor/
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |