question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run cell (ctrl+return) option not working

See original GitHub issue

Description

What steps will reproduce the problem?

Using “run cell” option runs the whole file.

Versions

  • Spyder version: 4.0.0b2
  • Python version: 3.6.7
  • Qt version: 5.6.2
  • PyQt5 version: 5.6
  • Operating System: Linux 4.18.0-15-generic

Dependencies

pygments >=2.0     :  2.3.1 (OK)
qdarkstyle >=2.6.4 :  2.7 (OK)
sphinx >=0.6.6     :  2.1.0 (OK)
psutil >=0.3       :  5.6.1 (OK)
pyls >=0.19.0;<0.25:  0.24.0 (OK)
nbconvert >=4.0    :  5.4.1 (OK)
pandas >=0.13.1    :  0.24.2 (OK)
numpy >=1.7        :  1.16.3 (OK)
sympy >=0.7.3      :  None (NOK)
cython >=0.21      :  None (NOK)
qtconsole >=4.2.0  :  4.4.3 (OK)
IPython >=4.0      :  7.4.0 (OK)
matplotlib >=2.0.0 :  3.0.3 (OK)
pylint >=0.25      :  2.3.1 (OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Johnnyboycurtiscommented, Jan 6, 2020

Can “Run selection or current line” be bound to CTRL+ENTER? I don’t find defining cells apriori convenient as I sometimes I need to run varying permutations of lines ad hoc.

[Edit] Solution: Key bindings can be found in Tools --> Preferences --> Keyboard shortcuts

1reaction
SudhanshuShankercommented, Jun 26, 2019

In spyder3, one can select a chunk of code (using a mouse) to use the “run cell” feature to execute selected lines only. But, this is not working in the current beta version. I like this feature as it makes the analysis of different parts of code extremely convenient.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control+Option+Return Not Working - Microsoft Community Hub
Hello, I am attempting to enter a line break in excel on my MacBook and the keyboard shortcut control+option+return is not working. Any...
Read more >
shift+enter/return for run does not work in Spyder
Then you can evaluate those cells by running Shift + Enter (to move to the next cell) or Ctrl + Enter (to stay...
Read more >
PyCharm - Run and debug Jupyter notebook code cells
To execute all code cells in your notebook, click Run all on the notebook toolbar or press Ctrl+Alt+Shift+Enter .
Read more >
2 Ways to Use the Ctrl+Enter Keyboard Shortcut in Excel
We can also control which cell is selected next after pressing the Enter key, or turn it off. This is a setting within...
Read more >
Optimizing Jupyter Notebook: Tips, Tricks, and nbextensions
Shift + Enter run the current cell, select below; Ctrl + Enter run selected cells; Alt + Enter run ... Working with external...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found