Skip to content

Connect to jupyterlab from vscode #3452

@vnijs

Description

@vnijs

Environment data

  • VS Code version: 33.1
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Docker and Linux VM

Expected behaviour

Execute python code

Actual behaviour

Screen Shot 2019-04-17 at 4 16 36 PM

Steps to reproduce:

You can run a docker image from vnijs/rsm-msba or run a bash script through the command below and press 3 when the menu shows up. Jupyter lab will be accessible through localhost on port 8989

source <(curl -s https://raw.githubusercontent.com/radiant-rstats/docker/master/launch-rsm-msba.sh)

Start vscode on linux and Install the Microsoft python extension:
https://marketplace.visualstudio.com/itemdetails?itemName=ms-python.python

Use the command palette to get to "Python: Specify Jupyter server Url" and enter

http://localhost:8989/?token=jupyter

Finally, try to send python code to the Python Interactive Window by right clicking in a python source code file and then the same errors should show up.

FYI This works fine when running vscode on macOS to connect to jupyterlab running in the docker container.

Logs

See screenshot above

Metadata

Metadata

Assignees

No one assigned

    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