Reputation: 707
I have some code here
I'm simply trying to run, the code, by clicking the Code Runner extension button in the top right corner. Except, when I click that, the only prompt I receive in the terminal is
/Users/Nick/opt/anaconda3/bin/python /Users/Nick/Desktop/cam_reddish_data.py
With no return output. I am using the correct version as my interpreter. I also recently installed anaconda, and am trying to run from that environment, so maybe that's the issue?
Any thoughts?
Upvotes: 1
Views: 1317
Reputation: 123
It is because actually that command:
player = player.get_player("Cam", "Reddish", just_id=False)
keeps executing and stops the next lines of code to be excuted, even if you removed that command, hello will be printed in the console. Check if there is any problem in that command
Upvotes: 3
Reputation: 21
This way you are not actually running any code.
There are two ways you can run it:
Navigate to your directory with the command cd (changedirectory)
cd
cd /Users/Nick/Desktop
Then run your program with python by typing:
python cam_reddish_data.py
Run the program without navigating to your directory:
python ~/Desktop/cam_reddish_data.py
Lmk.
Samu
Upvotes: 2