From ec889324d46ff9bc4ff03ed95ff81c4600818344 Mon Sep 17 00:00:00 2001 From: Ethan Chiu <17chiue@gmail.com> Date: Sat, 19 Feb 2022 18:59:50 -0500 Subject: [PATCH 1/8] Update License to 2022 --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 0017cc46..164c8c89 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2019, Ethan Chiu. All rights reserved. +Copyright (c) 2022, Ethan Chiu. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: From dbd79c29316e713c9be75cc57928a6b7bd90cf10 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 27 Mar 2022 08:11:45 -0700 Subject: [PATCH 2/8] Bump jinja2 from 2.11.2 to 2.11.3 (#62) Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.2 to 2.11.3. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/2.11.2...2.11.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a85dac76..99dd2387 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ Flask-SocketIO==4.3.1 greenlet==0.4.17 isort==5.6.4 itsdangerous==1.1.0 -Jinja2==2.11.2 +Jinja2==2.11.3 lazy-object-proxy==1.4.3 MarkupSafe==1.1.1 mccabe==0.6.1 From 3f9baeccfb264e67475a257f19e17e4f791990a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 27 Mar 2022 08:12:25 -0700 Subject: [PATCH 3/8] Bump eventlet from 0.29.1 to 0.31.0 (#63) Bumps [eventlet](https://github.com/eventlet/eventlet) from 0.29.1 to 0.31.0. - [Release notes](https://github.com/eventlet/eventlet/releases) - [Changelog](https://github.com/eventlet/eventlet/blob/master/NEWS) - [Commits](https://github.com/eventlet/eventlet/compare/v0.29.1...v0.31.0) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 99dd2387..47a4ae7a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ astroid==2.4.2 click==7.1.2 dnspython==1.16.0 -eventlet==0.29.1 +eventlet==0.31.0 Flask==1.1.2 Flask-SocketIO==4.3.1 greenlet==0.4.17 From 60176f4d0ada903a7fa92bcb2d33399178b92158 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Tue, 6 Dec 2022 16:49:46 +1100 Subject: [PATCH 4/8] docs: Fix a few typos (#65) There are small typos in: - PythonBuddy/static/js/cm-validator-remote.js - README.md Fixes: - Should read `virtualenv` rather than `vitualenv`. - Should read `error` rather than `eror`. - Should read `enjoyed` rather than `enojyed`. - Should read `curriculum` rather than `curriculumn`. Signed-off-by: Tim Gates Signed-off-by: Tim Gates --- PythonBuddy/static/js/cm-validator-remote.js | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PythonBuddy/static/js/cm-validator-remote.js b/PythonBuddy/static/js/cm-validator-remote.js index c1c1b680..f491774e 100644 --- a/PythonBuddy/static/js/cm-validator-remote.js +++ b/PythonBuddy/static/js/cm-validator-remote.js @@ -17,7 +17,7 @@ CodeMirror.remoteValidator = function(cm, updateLinting, options) { { var error = error_list[i]; - // Null check to make sure eror message is not empty + // Null check to make sure error message is not empty if (error.line_no != null && error.message != null && error.severity != null) { var start_line = error.line_no; diff --git a/README.md b/README.md index 7f4149d3..0e7ffd94 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Online Python 3 Programming with Live Pylint Syntax Checking! ``` python --version ``` - If you don't use Python Python 3.7.6, some Python libraries that PythonBuddy relies on **may not work**. Please refer to this documentation for figuring out how to create a specific version of Python via vitualenv via this StackOverflow [post](https://stackoverflow.com/a/39713544). + If you don't use Python Python 3.7.6, some Python libraries that PythonBuddy relies on **may not work**. Please refer to this documentation for figuring out how to create a specific version of Python via virtualenv via this StackOverflow [post](https://stackoverflow.com/a/39713544). 5) Pipe requirements to venv folder: ``` @@ -112,7 +112,7 @@ pytest --cov-report html --cov=PythonBuddy tests/ ### FAQ: Why did you make this?
-In 2014, I was a Community TA at MIT edX 6.00.1x course where I helped teach over 1000 students. The year after I started researching under Prof. Eni Mustafaraj. She had a data set from that course and we saw a high attrition rate of students within the first 2 weeks. After digging through the curriculumn and data, I realized that the students left because of difficulties setting up their Python environment and complex error messages that they couldn't solve when running their code (ex: some students had path issues). +In 2014, I was a Community TA at MIT edX 6.00.1x course where I helped teach over 1000 students. The year after I started researching under Prof. Eni Mustafaraj. She had a data set from that course and we saw a high attrition rate of students within the first 2 weeks. After digging through the curriculum and data, I realized that the students left because of difficulties setting up their Python environment and complex error messages that they couldn't solve when running their code (ex: some students had path issues).
So, I created PythonBuddy to address this issue so that students wouldn't have to go through the frustrations of setting up a Python environment and running into seemingly "random" bugs. PythonBuddy allows users to jump right into Python programming with the support of live syntax checking & highlighting. Also, professors and teachers could easily set up a server and allow students to quickly test out their code with PythonBuddy online. @@ -148,7 +148,7 @@ This was made by Ethan Chiu as a research project under the guidance of Wellesle As of October 2020, PythonBuddy.com will no longer be a demo server for this open-source project due to the increasing costs of hosting it for 80,000+ people monthly. Instead, this URL will redirect back to this GitHub repo. ### How can I support PythonBuddy? -If you enojyed using this open-source project, please consider donating whatever you can to these organizations that address problems I'm passionate about: +If you enjoyed using this open-source project, please consider donating whatever you can to these organizations that address problems I'm passionate about: - https://www.nami.org/Home - https://www.cradlestocrayons.org/ - https://codenation.org/ From 45619cdb455c3985538a96b81f7e59471ca9ae85 Mon Sep 17 00:00:00 2001 From: Ethan Chiu <17chiue@gmail.com> Date: Fri, 5 Jul 2024 22:08:17 -0700 Subject: [PATCH 5/8] Update README.md --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 0e7ffd94..1dfb33fa 100644 --- a/README.md +++ b/README.md @@ -147,12 +147,6 @@ This was made by Ethan Chiu as a research project under the guidance of Wellesle ### Other: As of October 2020, PythonBuddy.com will no longer be a demo server for this open-source project due to the increasing costs of hosting it for 80,000+ people monthly. Instead, this URL will redirect back to this GitHub repo. -### How can I support PythonBuddy? -If you enjoyed using this open-source project, please consider donating whatever you can to these organizations that address problems I'm passionate about: -- https://www.nami.org/Home -- https://www.cradlestocrayons.org/ -- https://codenation.org/ - If you don't have the means to donate to the above, consider checking out some of these free action items and information: - https://blacklivesmatters.carrd.co/#petitions - https://news.berkeley.edu/story_jump/end-of-affirmative-action-at-uc-hurt-black-latinx-students-study-finds/ From 26b37a8e6c95afda85715234f3c8cfba1cbe7f3b Mon Sep 17 00:00:00 2001 From: Ethan Chiu <17chiue@gmail.com> Date: Fri, 5 Jul 2024 22:08:59 -0700 Subject: [PATCH 6/8] Update README.md --- README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/README.md b/README.md index 1dfb33fa..ee59b519 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ # PythonBuddy 🖊️ 🐍 -[![Travis branch](https://img.shields.io/travis/rust-lang/rust/master.svg)](https://travis-ci.org/ethanchewy/OnlinePythonLinterSyntaxChecker) -[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](http://paypal.me/Ethan302)
Online Python 3 Programming with Live Pylint Syntax Checking!
@@ -146,10 +144,3 @@ This was made by Ethan Chiu as a research project under the guidance of Wellesle ### Other: As of October 2020, PythonBuddy.com will no longer be a demo server for this open-source project due to the increasing costs of hosting it for 80,000+ people monthly. Instead, this URL will redirect back to this GitHub repo. - -If you don't have the means to donate to the above, consider checking out some of these free action items and information: -- https://blacklivesmatters.carrd.co/#petitions -- https://news.berkeley.edu/story_jump/end-of-affirmative-action-at-uc-hurt-black-latinx-students-study-finds/ -- https://www.vote.org/ -- https://www.bentley.edu/news/confronting-anti-asian-racism-age-coronavirus -- https://en.wikipedia.org/wiki/Bamboo_ceiling From dcf027f76d9315500378137a01be4c80731f26b1 Mon Sep 17 00:00:00 2001 From: Ethan Chiu <17chiue@gmail.com> Date: Fri, 5 Jul 2024 22:09:09 -0700 Subject: [PATCH 7/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ee59b519..b8152e43 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@
Online Python 3 Programming with Live Pylint Syntax Checking!
+ ![](gifs/demo.gif) ### Usage From 91dfbf106c6896455b98ae10bd29386957ffd918 Mon Sep 17 00:00:00 2001 From: Elvis Wei <57282833+ewei068@users.noreply.github.com> Date: Sat, 19 Apr 2025 00:12:23 -0700 Subject: [PATCH 8/8] Added support for GitHub Codespaces (#69) * Create devContainer.json * setup script & readme instructions for Codespaces --- .devcontainer/devcontainer.json | 6 ++++++ README.md | 17 +++++++++++++++++ setup.sh | 8 ++++++++ 3 files changed, 31 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 setup.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..d98d252d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,6 @@ +{ + "name": "PythonBuddy", + "image": "mcr.microsoft.com/vscode/devcontainers/python:3.7", + "features": { + } +} diff --git a/README.md b/README.md index b8152e43..8f9365d8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,23 @@ Online Python 3 Programming with Live Pylint Syntax Checking! ![](gifs/demo.gif) ### Usage + +**GitHub Codespaces** + +The quickest way to use PythonBuddy is to launch your own GitHub Codespace! + +1) From the GitHub repo, click the green "Code" button and select "Codespaces". +2) Create a new Codespace or select a previous one you've already created. +3) Navigate to the new tab created for your Codespace. +4) In terminal, run `bash ./setup.sh` +5) Click "Open in Browser" in the bottom right corner after the setup is complete. + * The website may take a while to load or error at first while GitHub sets up the preview environment. In this case, reload the website. +6) Remember to **stop your workspace** after you're done using it. + +**Local Use** + +Due to Codespace's monthly limits, it's recommended to run PythonBuddy locally if used often. + 1) Fetch from repo: ``` git clone https://github.com/ethanchewy/PythonBuddy.git diff --git a/setup.sh b/setup.sh new file mode 100644 index 00000000..1a98ed3b --- /dev/null +++ b/setup.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +FLASK_APP=app.py + +pip install -r requirements.txt + +cd PythonBuddy +flask run \ No newline at end of file