Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

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

Closed
fyang93 opened this issue Apr 20, 2017 · 13 comments

Comments

@fyang93
Copy link

fyang93 commented Apr 20, 2017

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
@fyang93
Copy link
Author

fyang93 commented Apr 20, 2017

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

@DonJayamanne
Copy link
Owner

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.

@fyang93
Copy link
Author

fyang93 commented Apr 21, 2017

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
}

@puma007
Copy link

puma007 commented Apr 21, 2017

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!

@DonJayamanne
Copy link
Owner

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

@DonJayamanne
Copy link
Owner

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

@puma007
Copy link

puma007 commented Apr 21, 2017

@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)

@fyang93
Copy link
Author

fyang93 commented Apr 21, 2017

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

@zengjie
Copy link

zengjie commented Apr 21, 2017

@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

@DonJayamanne
Copy link
Owner

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

@puma007
Copy link

puma007 commented Apr 25, 2017

@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"

@DonJayamanne
Copy link
Owner

@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)

@puma007
Copy link

puma007 commented Apr 25, 2017

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants