Vscode-jupyter: shift+enter stops working for me

Created on 8 Jan 2020  路  14Comments  路  Source: microsoft/vscode-jupyter

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

  3. no reaction

  4. works only when put the cursor at a single line

    Expected behavior

  5. 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: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Most helpful comment

Works great in 2020.1.58038 update. Thanks for fixing it.

All 14 comments

Same problem here

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

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

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.

I'm also having this issue. Seems like the 1/6/20 update broke 'submit selection' functionality.

I have the same issue. It worked before 2020.1.57204 update

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

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

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.

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?

Should be fixed soon.

Reopening, hasn't shipped yet.

I have the same problem !

Works great in 2020.1.58038 update. Thanks for fixing it.

Was this page helpful?
0 / 5 - 0 ratings