Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect to Jupyter, #3904

Closed
qubitron opened this issue Feb 8, 2019 · 3 comments
Closed

Failed to connect to Jupyter, #3904

qubitron opened this issue Feb 8, 2019 · 3 comments

Comments

@qubitron
Copy link

qubitron commented Feb 8, 2019

Opening on behalf of @chris-lauren @chrislauren

Environment data

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

Expected behaviour

Starting jupyter server works

Actual behaviour

Failed to connect to jupyter server, due to this issue: jupyter/jupyter_console#158

Suggested workaround from the above issue of running pip install prompt-toolkit==1.0.15 in the environment fixed the issue

Steps to reproduce:

  1. Show Python Interactive Window command

Logs

Nothing in the output window, in developer tools saw something similar to:

Traceback (most recent call last):
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
    from .connect import *
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\ipykernel\connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\IPython\__init__.py", line 55, in <module>
    from .terminal.embed import embed
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\IPython\terminal\interactiveshell.py", line 22, in <module>
    from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application'
@rchiodo
Copy link
Contributor

rchiodo commented Feb 11, 2019

@qubitron I think you're suggesting we should showcase the jupyter failure more prominently?

Did you try this with our latest? I thought we showed the jupyter errors now.

@qubitron
Copy link
Author

@chrislauren can you let us know what version of the Python extension you are using (shown in the extensions tab?)

@brettcannon
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

@lock lock bot locked as resolved and limited conversation to collaborators May 23, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
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

3 participants