Skip to content

Commit c96bea8

Browse files
author
Cristian González
authored
Update documentation plus some other repository related files (#11)
* Add repository files and update documentation * Fix url reference
1 parent 234b9af commit c96bea8

File tree

5 files changed

+164
-21
lines changed

5 files changed

+164
-21
lines changed

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PythonTutor contributors
2+
UNCode

CONTRIBUTING.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Contributing to this repository
2+
We love your input! We want to make contributing to this project as easy and
3+
transparent as possible, whether it's:
4+
5+
- Reporting a bug.
6+
- Discussing the current state of the code.
7+
- Submitting a fix.
8+
- Proposing new features
9+
10+
## Our Development Process
11+
12+
We use github to host code, to track issues and feature requests, as well
13+
as accept pull requests.
14+
15+
## Your First Contribution
16+
17+
Unsure where to begin contributing to UNCode? You can start by looking through these beginner issues:
18+
**Good first issue** - issues which should only require a few lines of code and a not big understanding of UNCode.
19+
20+
Working on your first Pull Request? You can learn how from this *free* series,
21+
[How to Contribute to an Open Source Project on GitHub][contribute_github_url].
22+
23+
## Pull Requests
24+
25+
Pull requests are the best way to propose changes to the codebase
26+
(we use [Github Flow][github_flow_url].
27+
28+
We actively welcome your pull requests.
29+
30+
1. Fork the repo (in case not an admin) and create your branch from `master`.
31+
2. If you've added code that should be tested, add tests.
32+
3. If you've changed APIs, update the documentation.
33+
4. Ensure the test suite passes.
34+
5. Be sure you have followed the code style for the project.
35+
6. If you haven't already, complete the Contributor License Agreement ("CLA"). Note the code of conduct.
36+
7. Create the pull request to `master` branch.
37+
38+
### Code review
39+
40+
UNCode team will check your pull request and one of us will be assigned to review it and
41+
leave feedback. Make to reply the given feedback ASAP.
42+
43+
## Contributor License Agreement ("CLA")
44+
In order to accept your pull request, you will need to sign the Contributor License Agreement.
45+
Once the PR is created, you will be told whether or not you need to sign it and how to do it.
46+
47+
## Issues
48+
We use GitHub issues to track public bugs or Feature Requests. Please ensure your description is
49+
clear and has sufficient instructions to be able to reproduce the issue.
50+
51+
## License
52+
In short, when you submit code changes, your submissions are understood to be under the
53+
same [GNU AGPL v3][license_url] that covers the project.
54+
Feel free to contact the maintainers if that's a concern.
55+
56+
## Community
57+
58+
Chat with us on [Gitter][gitter_url].
59+
We will reply for sure on weekdays at GMT-5 time.
60+
61+
[contribute_github_url]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
62+
[github_flow_url]: https://guides.github.com/introduction/flow/index.html
63+
[license_url]: https://github.com/JuezUN/OnlinePythonTutor/blob/master/LICENSE
64+
[gitter_url]: https://gitter.im/uncode-unal/community

COPYRIGHTS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The vast majority of the files are
2+
3+
Copyright (c) 2017-2020 Philip J. Guo and UNCode team
4+
5+
Some of the files contain contributions from other persons, institutions or
6+
companies; as indicated in the UNCode Contributor Licence Agreement, they
7+
hold the copyright on their contributions. For simplicity, all the respective
8+
copyrights are not indicated at the top of the files, but can be easily
9+
retrieved using the git history.
File renamed without changes.

README.md

Lines changed: 89 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,65 @@
1-
Python Tutor -- http://pythontutor.com/ -- helps people overcome a fundamental barrier to learning programming: understanding what happens as the computer executes each line of a program's source code. Using this tool, you can write Python, Java, JavaScript, TypeScript, Ruby, C, and C++ programs in your Web browser and visualize what the computer is doing step-by-step as it executes those programs.
1+
# Python tutor - UNCode
2+
3+
[![GitHub license](https://img.shields.io/github/license/JuezUN/OnlinePythonTutor?style=plastic)][license_url]
4+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e509c0980c394a22a60315e7f384c1e8)][codacy_url]
5+
[![CLA assistant](https://cla-assistant.io/readme/badge/JuezUN/OnlinePythonTutor)][cla_url]
6+
[![Gitter](https://badges.gitter.im/uncode-unal/community.svg)][gitter_url]
7+
8+
Python Tutor helps people overcome a fundamental barrier to learning programming: understanding what happens as the computer executes each line of a program's source code. Using this tool, you can write Python, Java, JavaScript, TypeScript, Ruby, C, and C++ programs in your Web browser and visualize what the computer is doing step-by-step as it executes those programs.
9+
10+
This repository makes some small modifications to the original code to provide it as a Docker service
11+
to embed the interface on UNCode and allow users to visualize their code in Python3, C/C++ and Java.
12+
13+
The container is deployed in Docker Hub: [unjudge/onlinepythontutor][unjudge/onlinepythontutor_url].
14+
15+
The official website of the project is: <http://pythontutor.com/>.
216

317
This tool was created by [Philip Guo](http://pgbovine.net/) in January 2010. [See project history](history.txt).
418

19+
## Documentation
20+
521
- [Frequently Asked Questions](v3/docs/user-FAQ.md)
622
- [Overview for Developers](v3/docs/developer-overview.md)
723

8-
All documentation is viewable online at: https://github.com/pgbovine/OnlinePythonTutor/tree/master/v3/docs
24+
To view all documentation related to this project check the [docs][py_tutor_docs_url]. For additional documentation,
25+
please refer to the [Wiki][uncode_wiki_url].
926

27+
## Getting started
1028

11-
### Quick Start
29+
As this repository in only focused on supporting this utility for UNCode, there are two options to deploy and embed
30+
this on UNCode. This integration is also done in the organization main repository, in the [multilang plugin][multilang_url].
1231

13-
BY FAR the most preferred way to use Python Tutor is via the official website, since it contains the latest updates: http://pythontutor.com/
32+
Check the [iframe embedding documentation][embedding_path] for a better understanding on how this works.
1433

15-
You can use [iframe embedding](v3/docs/embedding-HOWTO.md) to easily embed visualizations on your webpage.
34+
However, it can be hard to run your own visualizer locally for non-Python languages, since it is necessary to deploy
35+
a service called `cokapi`, check the [documentation][cokapi_url]. This service also needs a backend to run
36+
C/C++ code, this is located in the repository [opt-cpp-backend][opt_cpp_backend_url].
37+
38+
To understand more how to deploy this service, check this [script][deploy_cokapi_url], which automatically deploys it
39+
when UNCode is deployed automatically.
40+
41+
For further directions, see [Overview for Developers](v3/docs/developer-overview.md) or explore the [rest of the docs](v3/docs/).
42+
43+
### Running container
44+
45+
To run the container, you can either pull it from docker hub:
46+
47+
```bash
48+
docker pull unjudge/onlinepythontutor
49+
```
50+
51+
Or build it:
52+
53+
```bash
54+
docker build -t unjudge/onlinepythontutor ./
55+
docker run -p 8003:8003 -e PY_CMD=python3 unjudge/onlinepythontutor
56+
```
57+
58+
To visualize python 2.7 code, run the container using the environment variable `PY_CMD` with `python`, rather than `python3`.
59+
60+
You should see the visualizer at: http://localhost:8003/visualize.html
61+
62+
### Running locally
1663

1764
If you want to run locally on your own computer, to run Python visualizations try:
1865

@@ -22,16 +69,33 @@ cd OnlinePythonTutor/v3/
2269
python bottle_server.py
2370
```
2471

25-
You should see the visualizer at: http://localhost:8003/visualize.html
72+
You should see the visualizer at: <http://localhost:8003/visualize.html> and the live programming environment
73+
at: <http://localhost:8003/live.html>
2674

27-
... and the live programming environment at: http://localhost:8003/live.html
75+
## Roadmap
2876

29-
However, it can be hard to run your own visualizer locally for non-Python languages, since there are complex setups in v4-cokapi/ that I haven't yet cleanly packaged up.
77+
See the [UNCode GitHub Project][project_url] for a list of proposed features for UNCode, known issues and how they are
78+
being tackled.
3079

31-
For further directions, see [Overview for Developers](v3/docs/developer-overview.md) or explore the [rest of the docs](v3/docs/).
80+
## Contributing
81+
82+
Go to [CONTRIBUTING][contributing_url] to see the guidelines and how to start contributing to UNCode.
3283

84+
## License
3385

34-
### Acknowledgments
86+
Distributed under the MIT License. See [LICENSE][license_url] for more information.
87+
88+
## Contact
89+
90+
In case of technical questions, please use the [gitter communication channel][gitter_url].
91+
92+
In case you want to host your course on our deployment, email us on: <uncode_fibog@unal.edu.co>
93+
94+
UNCode: <https://uncode.unal.edu.co>
95+
96+
Project page: <https://juezun.github.io/UNCode_page/>
97+
98+
## Acknowledgments
3599

36100
For code or security contributions
37101

@@ -60,16 +124,20 @@ For general advice and feedback about this project:
60124
- Mark Guzdial
61125
- Adam Hartz
62126
- Sean Lip
63-
- Tomas Lozano-Perez
64-
- Bertram Ludaescher
65-
- Brad Miller
66-
- Rob Miller
67-
- Peter Norvig
68-
- Andrew Petersen
69-
- David Pritchard
70-
- Suzanne Rivoire
71-
- Guido van Rossum
72-
- Peter Wentworth
73-
- David Wilkins
74127

75128
... and many, many more!
129+
130+
[license_url]: https://github.com/JuezUN/OnlinePythonTutor/blob/master/LICENSE.txt
131+
[codacy_url]: https://www.codacy.com/gh/JuezUN/OnlinePythonTutor/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=JuezUN/OnlinePythonTutor&amp;utm_campaign=Badge_Grade
132+
[cla_url]: https://cla-assistant.io/JuezUN/OnlinePythonTutor
133+
[unjudge/onlinepythontutor_url]: https://hub.docker.com/r/unjudge/onlinepythontutor
134+
[py_tutor_docs_url]: https://github.com/juezun/OnlinePythonTutor/tree/master/v3/docs
135+
[uncode_wiki_url]: https://github.com/JuezUN/INGInious/wiki
136+
[project_url]: https://github.com/orgs/JuezUN/projects/3
137+
[contributing_url]: https://github.com/JuezUN/OnlinePythonTutor/blob/master/CONTRIBUTING.md
138+
[gitter_url]:https://gitter.im/uncode-unal/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
139+
[multilang_url]: https://github.com/JuezUN/INGInious/tree/master/inginious/frontend/plugins/multilang
140+
[embedding_path]: v3/docs/embedding-HOWTO.md
141+
[cokapi_url]: https://github.com/JuezUN/OnlinePythonTutor/tree/master/v4-cokapi
142+
[opt_cpp_backend_url]: https://github.com/JuezUN/opt-cpp-backend
143+
[deploy_cokapi_url]: https://github.com/JuezUN/Deployment/blob/master/deployment_scripts/deploy_cokapi_service.sh

0 commit comments

Comments
 (0)