Skip to content

shift+enter stops working for me #2479

Closed
microsoft/vscode-python
#9445

Description

@xzjsliran

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. select several lines that want to send to interactive window
  2. press 'shift + enter'

Actual behavior

  1. no reaction
  2. works only when put the cursor at a single line

Expected behavior

  1. selected codes sent to interactive window and start processing

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local | Remote | N/A
  • Extension version: 2020.01.57204-xxx
  • VS Code version: 1.41.1
  • Setting python.jediEnabled: true | false
  • Python and/or Anaconda version: 3.7.5
  • OS: Windows | Mac | Linux (distro):
  • Virtual environment: conda | venv | virtualenv | N/A | ...

{ "key": "shift+enter", "command": "python.datascience.runcurrentcelladvance", "when": "editorTextFocus && python.datascience.featureenabled && python.datascience.hascodecells && !editorHasSelection" }

{ "key": "shift+enter", "command": "python.datascience.execSelectionInteractive", "when": "editorTextFocus && python.datascience.featureenabled && python.datascience.ownsSelection && !findInputFocussed && !replaceInputFocussed && editorLangId == 'python'" }

"python.dataScience.sendSelectionToInteractiveWindow": true

"editor.codeLens": true

Also tried methods mentioned in:
https://github.com/microsoft/vscode-python/issues/3397
https://github.com/microsoft/vscode-python/issues/5621
https://github.com/microsoft/vscode-python/issues/6578
and doesn't work at all.

Developer Tools Console Output: nothing

Microsoft Data Science for VS Code Engineering Team: Rich Chiodo (@rchiodo), Ian Huff (@IanMatthewHuff), David Kutugata (@DavidKutu), Don Jayamanne (@DonJayamanne), Jim Griesmer (@greazer)

Activity

  1. albimaths commented on Jan 8, 2020

    @albimaths

    Same problem here

  2. Random-Forest-42 commented on Jan 8, 2020

    @Random-Forest-42

    I'm having this problem as well. Installing an older version of the extension fixed it.

  3. ling910520 commented on Jan 8, 2020

    @ling910520

    seems to only work on last lines of codes in the editor

  4. xzjsliran commented on Jan 8, 2020

    @xzjsliran
    Author

    I'm having this problem as well. Installing an older version of the extension fixed it.

    Thanks, it seems the only way to solve it.

  5. MarekOzana commented on Jan 8, 2020

    @MarekOzana

    I have the same issue. It worked before 2020.1.57204 update

  6. rchiodo commented on Jan 8, 2020

    @rchiodo
    Contributor

    Thanks, I'm able to repro here at Microsoft. Hopefully we can fix this soon.

  7. rchiodo commented on Jan 8, 2020

    @rchiodo
    Contributor

    This looks to be a side effect of the 'conda run' change.

  8. rchiodo commented on Jan 8, 2020

    @rchiodo
    Contributor

    Any code with a '\n' inside of it isn't getting through because the 'conda run' change added an extra layer of indirection to executing something.

  9. xzjsliran commented on Jan 8, 2020

    @xzjsliran
    Author

    Any code with a '\n' inside of it isn't getting through because the 'conda run' change added an extra layer of indirection to executing something.

    Thank you. Maybe the issue could be closed. Will this problem be fixed soon?

  10. rchiodo commented on Jan 8, 2020

    @rchiodo
    Contributor

    Should be fixed soon.

  11. rchiodo commented on Jan 8, 2020

    @rchiodo
    Contributor

    Reopening, hasn't shipped yet.

  12. ateffal commented on Jan 11, 2020

    @ateffal

    I have the same problem !

  13. MarekOzana commented on Jan 14, 2020

    @MarekOzana

    Works great in 2020.1.58038 update. Thanks for fixing it.

  14. locked as resolved and limited conversation to collaborators on Jan 24, 2020
  15. unlocked this conversation on Nov 13, 2020
  16. locked as resolved and limited conversation to collaborators on May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions