Vscode-jupyter: Run jupyter with kernel other than python

Created on 4 Apr 2019  Â·  6Comments  Â·  Source: microsoft/vscode-jupyter

Environment data

  • VS Code version: 1.32.3
  • Extension version (available under the Extensions sidebar): MS Python 2019.3.6352
  • OS and version: Ubuntu 16.04
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.5.2 (also tried anaconda)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A also tried conda, both failed.
  • Relevant/affected Python packages and their versions: jupyter 4.4.0

Expected behaviour

The notebook runs the same as it does when I run it from the browser.

Actual behaviour

The installed kernel is not found and I get errors that indicate a "straight python" kernel was used.

Steps to reproduce:

  1. install almond.sh https://almond.sh/docs/quick-start-install
  2. cd almond/examples and launch juptyer, % jupyter notebook plotly_scala.ipynb
  3. copy the uri link that the notebook launch printed out
  4. launch vscode in that directory
  5. select the jupyter uri that the notebook launch supplied
  6. import the plotly_scala.ipynb notebook into vscode
  7. try executing cells until you hit the $ivy

Result: SyntaxError: invalid syntax

Logs

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

Starting Microsoft Python language server.
[Info  - 8:55:50 PM] GetCurrentSearchPaths /usr/bin/python3 
[Info  - 8:55:50 PM] Python search paths:
[Info  - 8:55:50 PM]     /usr/lib/python3.5
[Info  - 8:55:50 PM]     /usr/lib/python3.5/plat-x86_64-linux-gnu
[Info  - 8:55:50 PM]     /usr/lib/python3.5/lib-dynload
[Info  - 8:55:50 PM]     /home/langley/.local/lib/python3.5/site-packages
[Info  - 8:55:50 PM]     /usr/local/lib/python3.5/dist-packages
[Info  - 8:55:50 PM]     /usr/lib/python3/dist-packages
[Info  - 8:55:50 PM] Configuration search paths:
[Info  - 8:55:50 PM]     /usr/lib/python35.zip
[Info  - 8:55:50 PM]     /usr/lib/python3.5
[Info  - 8:55:50 PM]     /usr/lib/python3.5/plat-x86_64-linux-gnu
[Info  - 8:55:50 PM]     /usr/lib/python3.5/lib-dynload
[Info  - 8:55:50 PM]     /home/langley/.local/lib/python3.5/site-packages
[Info  - 8:55:50 PM]     /usr/local/lib/python3.5/dist-packages
[Info  - 8:55:50 PM]     /usr/lib/python3/dist-packages
[Info  - 8:55:50 PM]     /usr/bin
[Info  - 8:55:51 PM] Microsoft Python Language Server version 0.2.43.0
[Info  - 8:55:51 PM] Initializing for /usr/bin/python3

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)


Most helpful comment

@langley. Yeah, that's the case for now, even if you start an external server. I hate having to say that, as we really want to support more of the various language kernels. But we started out with a Python focus and we still are pretty locked into that for the near future. Polyglot support is coming, but it won't be right away.

All 6 comments

@langley Sorry, but as of right now this feature is only supported with Python. We are looking at supporting other languages in the future.

Ugh, bummer.

Even if I run an external jupyter notebook server? (I'll admit I'm still getting familiar with the jupyter architecture)

@langley. Yeah, that's the case for now, even if you start an external server. I hate having to say that, as we really want to support more of the various language kernels. But we started out with a Python focus and we still are pretty locked into that for the near future. Polyglot support is coming, but it won't be right away.

Thanks @IanMatthewHuff for clarifying. I'm really looking forward to the polyglot world :+1:

Also excited for polyglot support. Not only for data science – being able to use VSCode as a general-purpose repl in Node, Ruby, etc would be really delightful, and could make the editor a much more integral part of developers' workflows.

Closing as a dupe of microsoft/vscode-jupyter#1536

Was this page helpful?
0 / 5 - 0 ratings