update 'python3' command in code_editor.py

This commit is contained in:
Cheng Zhang
2024-09-09 12:13:35 -05:00
parent 23fd3ab74e
commit 07465728c3
17 changed files with 4 additions and 2 deletions

View File

@@ -1,2 +1,4 @@
# PythonX
An open class for beginners to learn Python programming
# Packages
- pip3 install streamlit_ace, streamlit_antd_components

View File

@@ -33,7 +33,7 @@ def code_editor(height="300px", sample_code = "", editor_label = "",min_lines =
try:
result = subprocess.run(
["python", "./webpages/input_code.py"], # Command to execute
["python3", "./webpages/input_code.py"], # use Python3 command to execute file
capture_output=True, # Capture both stdout and stderr
text=True, # Ensure the output is returned as a string
timeout=10 # Timeout after 10 seconds

View File

@@ -1 +1 @@
print("Hello PythonX")
print("hello")