![]() -i is the option that puts the command line into the “interactive mode” of python after the code is run, which will make the workflow resemble IDLE better./K is a flag or “option” that tells the command line to run the text following it, as well as to keep the command line window open after it is completeĭ:\Python26\python.exe runs the python interpreter.Let’s briefly look over the components of the command above: You could just click “Run” at this point, but we anticipate we’re probably going to be using this command many times in the process of creating our python files, so we will save it to a shortcut instead. Copy and paste the following command into the field:Ĭmd /K D:\Python26\python.exe -i -c “execfile(‘$(FULL_CURRENT_PATH)’)”Ģ. NOTE 2: This article is directed toward Windows users.įrom the Run menu on the menu bar in Notepad++ click “Run…”ġ. NOTE: This article is designed to complement the Python: The Basics course offered by IT Training at IU, but serves as an independent resource as well. This article demonstrates how to set up Notepad++ to load and run your python document into the python interpreter with the flick of a custom keystroke. While there is nothing wrong with writing and executing python code in IDLE, python’s bundled integrated development environment, sometimes you might prefer to write in a more standard editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |