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

Can't start jupyter notebook with latest vscode jupyter and python extensions #90

Closed
breathe opened this issue Nov 27, 2017 · 1 comment

Comments

@breathe
Copy link

breathe commented Nov 27, 2017

Environment data

VS Code version: 1.18.1
Jupyter Extension version:
OS and version:

Logs

Output from Jupyter output panel

Starting Jupyter Notebook
jupyter notebook --no-browser --port=8888 --NotebookApp.allow_origin="*"

(It just hangs like this with 'Starting jupyter notebook text in vscode status panel)

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

screen shot 2017-11-27 at 9 15 48 am

Actual behavior

Jupyter notebook fails to start

Expected behavior

Jupyter notebook starts

Steps to reproduce:

  • Open vscode
  • run start jupyter notebook

The following config properties for jupyter/python are in effect ...

  "jupyter.notebook.startupFolder": "${workspaceFolder}/resources/FaqDataset",
  // "jupyter.appendResults": false,
  "jupyter.languages": [
    {
      "languageId": "python",
      "startupCode": []
    }
  ],
  "python.pythonPath": "${env.HOME}/anaconda3/envs/dev/bin/python",
  // TODO: change to ${env:HOME} paths so its portable across machines -- doesn't work yet tho
  // due to bug.  Bug was reported and fixed in master of pythonVSCode extension but new release
  // hasn't been cut yet.  Change these paths after the new release drops
  "python.linting.pylintPath": "${env.HOME}/anaconda3/envs/dev/bin/pylint",
  "python.linting.mypyPath": "${env.HOME}/anaconda3/envs/dev/bin/mypy",
  "python.linting.mypyEnabled": true,
  "python.linting.pylintArgs": ["--max-line-length=160"],
  "python.formatting.autopep8Args": ["--max-line-length", "160"]

Also fails if I change my workspace settings to following

  "jupyter.notebook.startupFolder": "${workspaceFolder}/resources/FaqDataset",
  // "jupyter.appendResults": false,
  "jupyter.languages": [
    {
      "languageId": "python",
      "startupCode": []
    }
  ],
  "python.pythonPath": "/Users/bcohen/anaconda3/envs/dev/bin/python",
  // TODO: change to ${env:HOME} paths so its portable across machines -- doesn't work yet tho
  // due to bug.  Bug was reported and fixed in master of pythonVSCode extension but new release
  // hasn't been cut yet.  Change these paths after the new release drops
  "python.linting.pylintPath": "/Users/bcohen/anaconda3/envs/dev/bin/pylint",
  "python.linting.mypyPath": "/Users/bcohen/anaconda3/envs/dev/bin/mypy",
  "python.linting.mypyEnabled": true,
  "python.linting.pylintArgs": ["--max-line-length=160"],
  "python.formatting.autopep8Args": ["--max-line-length", "160"]

screen shot 2017-11-27 at 9 20 57 am

@DonJayamanne
Copy link
Owner

DonJayamanne commented Nov 27, 2017

@breathe I'm sorry to hear about this issue, I can assure you this has been fixed and the fix will be available in the next release of the Python extension (early-mid December).
Closing in favor of an upstream issue microsoft/vscode-python#245

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

2 participants