Merge pull request #1555 from nolan23/update-docs

move comment to correct position
pull/2108/head
Richard Beales 2023-04-17 07:12:25 +01:00 committed by GitHub
commit 6dbe84a1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -40,6 +40,9 @@ def execute_python_file(file: str):
try:
client = docker.from_env()
# You can replace 'python:3.8' with the desired Python image/version
# You can find available Python images on Docker Hub:
# https://hub.docker.com/_/python
image_name = "python:3.10"
try:
client.images.get(image_name)
@ -57,9 +60,6 @@ def execute_python_file(file: str):
elif status:
print(status)
# You can replace 'python:3.8' with the desired Python image/version
# You can find available Python images on Docker Hub:
# https://hub.docker.com/_/python
container = client.containers.run(
image_name,
f"python {file}",