RUNNING A PYTHON CODE ON ATOM | Coursera Community
Coursera Header
Answered

RUNNING A PYTHON CODE ON ATOM

  • 17 September 2019
  • 4 replies
  • 5900 views

Badge +1
Hello there,
I am a complete beginner trying to learn python programming. I have managed to install python 3.7, installed Atom and installed script in Atom as well. I however tried to learn a code (copy pasted from google) and am getting the error"you must select a language" I can not see the field where I should select the language from. Where am going wrong?
Thanks in advance.
icon

Best answer by Ekwoge Blaise 17 September 2019, 15:28

Hello @James Ireri , did you save your code as python_code_name.py? If yes, then I found the following suggestion to work just find; to permit you run python code(script) in atom.

When you are in atom,
  • Go to > File > settings (Or press Ctrl + comma if u are a window user)and select "install"
  • Or just press Ctrl + Shift + P and type "View installed packages" and select the correct one from the drop down list. From there, Look at the left pane of the screen click Install
  • Search for "script"
  • Install script
Hope you find this helpful. Let me know if you did or if you have any more worries.😉
View original

4 replies

Userlevel 2
Badge +1
where did you put the code?
If you put it on the atom editor make sure you save the file as python like (name.py)
then you can run the code in the command line or python by opening the script..
Userlevel 1
Badge
Hello @James Ireri , did you save your code as python_code_name.py? If yes, then I found the following suggestion to work just find; to permit you run python code(script) in atom.

When you are in atom,
  • Go to > File > settings (Or press Ctrl + comma if u are a window user)and select "install"
  • Or just press Ctrl + Shift + P and type "View installed packages" and select the correct one from the drop down list. From there, Look at the left pane of the screen click Install
  • Search for "script"
  • Install script
Hope you find this helpful. Let me know if you did or if you have any more worries.😉
Badge +1
Hello Blaise,
I think am still a bit lost. May be am missing something.
Attached is my screen shot.

Badge
Hello Blaise,
I think am still a bit lost. May be am missing something.
Attached is my screen shot.




Reselect the language and restart atom, It should work

Reply