Skip to content

Jupyter doesn't work with anaconda #5539

Closed
@zohaad

Description

@zohaad

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.4.2
  • OS and version: macOS Mojave 10.14.3
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.1 Anaconda 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: N/A

Expected behaviour

Jupyter loads correctly

Actual behaviour

it fails to load with anaconda

Steps to reproduce:

  1. select code
  2. shift + enter

Logs

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

Executing code failed : Error: Activating Python 3.7.1 64-bit ('py37': conda) to run Jupyter failed with Error: Command failed: . /anaconda3/envs/py37/bin/activate && conda activate py37 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/zohaad/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/printEnvVariables.py CommandNotFoundError: 'activate is not a conda command. Did you mean 'source activate'? .

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions