Skip to content

Run Cell does not find Jupyter in virtual environment #3774

@mrvkino

Description

@mrvkino

Environment data

  • VS Code version: 1.29.1
  • Extension version (available under the Extensions sidebar): 2018.11.0
  • OS and version: MacOSX 10.14.1
  • Python version (& distribution if applicable, e.g. Anaconda): homebrew python 3.7.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
  • Relevant/affected Python packages and their versions: jupyter notebooks

Actual behavior

Notification with the message: Running cells requires Jupyter notebooks to be installed.

I am able to start jupyter notebook in my virtual environment.
screen shot 2018-12-03 at 3 32 46 pm

Expected behavior

Jupyter Notebook being started.

Steps to reproduce:

  1. Create a jupyter python file
  2. Click the Run Cell

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Microsoft Python Language Server version 0.1.65.0
Initializing for /Users/.../.local/share/virtualenvs/jupyter_vscode-_1tZN8jX/bin/python

Linter 'flake8' is not installed. Please install it or select another linter".
Error: Module 'flake8' not installed.

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

In the console of the Developper Tools I see that the plug-in is looking for Jupyter in a bunch of my pyenv Python but not my virtualenv.

screen shot 2018-12-03 at 3 43 50 pm

Metadata

Metadata

Assignees

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