spyder: Run cell (ctrl+Enter) don't work in Spyder inatalled with the Anaconda

Issue Report Checklist

  • Searched the issues page for similar reports *Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Executing the “run cell” (ctrl + enter) on code in the Spyder editor produces no response/output in the console. The same with the “print” command appearing in the code - no output displayed in the console.

What steps reproduce the problem?

  1. Using the “ctrl + enter” command on relevant code in the editor.
  2. print() seems not to work.
  3. Only when copying the code from 1 and 2 into the console command prompt I get the relevant results.

What is the expected output? What do you see instead?

Nothing is produced

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version: 3.3.2
  • Python version: 3.7
  • Qt version: 5.9.7
  • PyQt version: 5.9.2
  • Operating System name/version: win 10 pro

Dependencies

PASTE DEPENDENCIES HERE

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 26 (11 by maintainers)

Most upvoted comments

No, individual lines are run with F9.

2020-03-20_234934

I got the same issue but resolved it using F9. instead of using “ctrl+enter” use ‘F9’ to execute a single line or a block of code.

ddd

finally i found a solution, what a headache it was i stopped using spyder because i thought it got corrupted

I am just new here and made a rookie mistake, sorry for the trouble, it was but a simple fix.

Tools -> Preferences - Keyboard Shortcuts

Thanks again! I absolutely love Spyder 4.0!

------ Original Message ------ From: “Leonard D. Vorbeck” notifications@github.com To: “spyder-ide/spyder” spyder@noreply.github.com Cc: “Yiorgos” ynikas@yahoo.com; “Mention” mention@noreply.github.com Sent: 12/11/2019 4:35:52 PM Subject: Re: [spyder-ide/spyder] Run cell (ctrl+Enter) don’t work in Spyder inatalled with the Anaconda (#8994)

@yiorgosn https://github.com/yiorgosn You can just change the shortcuts in the settings !! Spyder 4 ftw

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/8994?email_source=notifications&email_token=AG34HO7U5RZKC7Z2HIQBLTDQYD3ERA5CNFSM4HAEGOM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGTK7ZY#issuecomment-564572135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG34HO7OTBAN6NU7B52P3J3QYD3ERANCNFSM4HAEGOMQ.

I am using F9 for this function. it’s working well

sorry to say - that I did a classic “power cycle” - and my issue disappeared… thanks though!

Awesome @byersiiasa 😃 About the apps: to record the GIF I used LICECap and to show the keystrokes I used Carnac

Hi @byersiiasa could you provide a GIF to understands the behavior you’re experiencing (or maybe a reproducible example)? I tested on Windows and the shortcut seems like it’s working:

cells

If you keep experiencing an issue maybe it could be worthy to open a new issue where you add more info about your setup (i.e OS, specific version, etc.) and the GIF or steps to reproduce the issue you’re facing 😃

Can’t queue cells or blocks of code

That functionality was removed a couple of years ago and it’ll come back in Spyder 4.2 or 5, we’re still thinking about it.