Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New tag on double-clicking to run Python scripts #224

Closed
n0Oo0Oo0b opened this issue Aug 31, 2023 · 2 comments
Closed

New tag on double-clicking to run Python scripts #224

n0Oo0Oo0b opened this issue Aug 31, 2023 · 2 comments
Labels
area: tags Related to the @Python bot's tags meta: duplicate This issue or pull request already exists status: actionable A staff member needs to action this issue

Comments

@n0Oo0Oo0b
Copy link

Tag Name

double-click-to-run

What kind of content should the tag include?

A common question from beginners just starting out is "Why does my program instantly close when I open them?", which occurs because they double-click a Python script to run it rather than running it from a command line or IDE.

This tag could explain this behavior and contain instructions on how to run the script from a command line instead.

I also considered including the quick and dirty solution of appending input() to the script, but decided against it as it is just a workaround that does not solve the issue.

@n0Oo0Oo0b n0Oo0Oo0b added the area: tags Related to the @Python bot's tags label Aug 31, 2023
@n0Oo0Oo0b n0Oo0Oo0b changed the title New tag on New tag on double-clicking to run Python scripts Aug 31, 2023
@wookie184
Copy link

It might be hard to explain the correct alternative since the exact solution is dependant on a few things (e.g. OS, or editor/IDE), and instructions would depend on the users familiarity with a few things (e.g. do they even know what a command line is).

It could still be useful to explain why it's not the correct way of running things, and say what the correct way is but leaving the details to be explained by whoever invoked the tag or linking to an external resources.

@wookie184 wookie184 added the status: actionable A staff member needs to action this issue label Aug 31, 2023
@wookie184
Copy link

Just noticed this is a duplicate of #206, lets move there

@wookie184 wookie184 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
@wookie184 wookie184 added the meta: duplicate This issue or pull request already exists label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tags Related to the @Python bot's tags meta: duplicate This issue or pull request already exists status: actionable A staff member needs to action this issue
Projects
None yet
Development

No branches or pull requests

2 participants