DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jupyter infinitely create "Python.exe" processes when working together with Python extension

fyang93 opened this issue · comments

Environment data

VS Code version:1.11.2
Jupyter Extension version:1.1.1
OS and version:Windows 10 Pro 10.0.15063
Anaconda version:4.3.1 (64-bit)
Python version:3.6.0
Jupyter version:4.2.1

Logs

Output from Jupyter output panel

no output

Output from Console window (Help->Developer Tools menu)

no output

Actual behavior

It infinitely creates "Python.exe" processes.

Expected behavior

Show the result plots in Jupyter output panel.

Steps to reproduce:

  • Install "Python" extension and "Jupyter" extension
  • Write the test python code, and click "Run cell", then booooom

Well, I find the solution is actually using Python extension solely, without Jupyter.

What version of python are you using?
What version of Jupyter are you using?
Please upload contents of your user and workspace settings.json file.

There were nothing related to python or jupyter in my user settings.json file. And I didn't use a workspace settings.json file. The content in user settings.json is shown as follows:

// Place your settings in this file to overwrite the default settings
{
    "editor.fontFamily": "Consolas, microsoft yahei",

    "files.associations": {
        "*.m": "matlab"
    },

    "editor.wordWrap": "on",

    // "terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\bash.exe",

    // Port number to use for connection.
    "remote.port": 52698,

    // Launch the server on start up.
    "remote.onstartup": true
}

When I click "run cell" link in vs code,it prompts “start a new notebook or select an existing notebook”. If i click the "start a new notebook" link,the Cpu occupancy rate will reach 99%, and start a lot of python threads!

@dangoron
What version of python are you using?
What version of Jupyter are you using?

@puma007
What version of python are you using?
What version of Jupyter are you using?

@DonJayamanne
OS Name: Microsoft Windows 10 pro
OS Version: 10.0.14393 N/A Build 14393
VS Code version:1.11.2
python version : 3.5
Jupyter vesion :
jupyter (1.0.0)
jupyter-client (5.0.1)
jupyter-console (5.1.0)
jupyter-core (4.3.0)

@DonJayamanne
Please see the environment data part in the first comment, I have already edited that :)

@DonJayamanne
Python version: 2.7.13
OS: macOS 10.12.4
Jupyter versions:
jupyter==1.0.0
jupyter-client==5.0.1
jupyter-console==5.1.0
jupyter-core==4.3.0
jupyter-kernel-gateway==0.5.0
jupyterlab==0.5.0

@dangoron @zengjie @puma007
Hi everyone, please could you test the latest version. Hopefully this has been fixed.

@DonJayamanne Cpu occupancy rate normal!But when i click "run cell"link, and then select "start a new book",there is still error "Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command"

@puma007 what's the out put in the Jupyter out put panel in vscode? Also are there any other errors in the console log (help -> developer tools , console tab)

@DonJayamanne the console output the log:

[Extension Host] [C:\Users\foxhu.vscode\extensions\donjayamanne.python-0.6.3]: 命令“jupyter.execCurrentCell”多次出现在“命令”部分。
extensionHost.ts:284[Extension Host] [C:\Users\foxhu.vscode\extensions\donjayamanne.python-0.6.3]: 命令“jupyter.execCurrentCellAndAdvance”多次出现在“命令”部分。
extensionHost.ts:284[Extension Host] [C:\Users\foxhu.vscode\extensions\donjayamanne.python-0.6.3]: 命令“jupyter.gotToPreviousCell”多次出现在“命令”部分。
extensionHost.ts:284[Extension Host] [C:\Users\foxhu.vscode\extensions\donjayamanne.python-0.6.3]: 命令“jupyter.gotToNextCell”多次出现在“命令”部分。
extensionHost.ts:284[Extension Host] vscode-icons is active!
messageService.ts:126 Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' commande.doShow @ messageService.ts:126e.show @ messageService.ts:105(anonymous function) @ mainThreadMessageService.ts:64n.Class.derive._oncancel @ winjs.base.raw.js:1641t.showMessage @ mainThreadMessageService.ts:34t.$showMessage @ mainThreadMessageService.ts:28e.handle @ abstractThreadService.ts:34s @ ipcRemoteCom.ts:275f @ ipcRemoteCom.ts:231_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
extensionHost.ts:284 [Extension Host] rejected promise not handled within 1 second
shell.ts:475 Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command