About 319,000 results
Open links in new tab
  1. How can I open my .py file in the python terminal (noob asking)?

    Jul 17, 2019 · cd into the directory of the project and then run python ui.py. Copying the file to another directory may break the program as it could rely on other files in its project directory. If …

  2. How to edit a py file from terminal? - Stack Overflow

    At which you'll be entering the python editor after closing the program, or. Use a text editor like nano (since it's installed by default with most operating systems), or emacs, which also is a …

  3. How to run a Python file in Visual Studio code from the terminal?

    Nov 28, 2022 · Open the folder using VS Code: File -> Open Folder; Create your script and save it in the folder; Open a new terminal: Terminal -> New Terminal; Type the command: python …

  4. How to open Python files in the new Windows Terminal?

    Aug 11, 2021 · Just so everyone knows, I opened the Registry Editor (Win+R and enter "regedit"), changed the location to …

  5. macos - How to run Python script on terminal? - Stack Overflow

    Apr 5, 2020 · Let's say your script is called my_script.py and you have put it in your Downloads folder.. There are many ways of installing Python, but Homebrew is the easiest.

  6. How to keep a Python script output window open? - Stack Overflow

    Jun 16, 2009 · Run the program from an already-open terminal. Open a command prompt and type: python myscript.py For that to work you need the python executable in your path. Just …

  7. How can I run python in terminal on a mac? - Stack Overflow

    May 23, 2015 · What python hello.py does (if you were to run it in your terminal instead) is to execute the python interpreter, supplying your hello.py file as the code for the interpreter to …

  8. python - How to run a .py file in windows command line? - Stack …

    Nov 5, 2013 · I have written a simple python program using IDLE to run it from command line. I don't have permission to save .py file in python directory (C:\program files\python33) so I …

  9. How do I load a file into the python console? - Stack Overflow

    Open command prompt in the folder in which you files to be imported are present. when you type 'python', python terminal will be opened. Now you can use import script_name Note: no .py …

  10. shell - How can I create and open a file from terminal with a single ...

    What I do when I want to create a file, edit it and just save it is I type vim at the terminal. vim is a text editor. If you just type in vim you would see the text editor. But if you type for instance vim …

Refresh