question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyspark kernel created using sparkmagic is not showing in the kernel list of jupyter extension in vs code

See original GitHub issue

Environment data

  • VS Code version: 1.62.2
  • Jupyter Extension version (available under the Extensions sidebar): v 2021.10.110
  • Python Extension version (available under the Extensions sidebar): v. 2021.10.11422169775
  • OS (Windows | Mac | Linux distro) and version: Windows 10 Enterprise 20H2 build 19042.1288
  • Python and/or Anaconda version: python 3.8.8, Anaconda 3 (64 bits)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): NA
  • Jupyter server running: Local | Remote | local

Expected behaviour

All kernel visible/working in Conda Jupyter Notebook should be the same in VS code jupyter extension

Actual behaviour

pyspark kernel installed using sparkmagic did not show in vs code jupyter extension kernel list, even it worked well with Conda Jupyter Notebook and it showed with command of jupyter kernelspec list.

Steps to reproduce:

  1. Install sparkmagic extension (instruction: https://github.com/jupyter-incubator/sparkmagic)
  2. test in Jupyter Notebook, and it should be available in the kernel list
  3. Open vs code, choose kernel, it is not showing in the list.

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. XXX

Logs

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

XXX

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpmaterialcommented, Nov 2, 2022

If anyone is wondering where to find the kernelspec: jupyter kernelspec list gives a list of all directories specifying kernels, which will contain kernel.json files.

0reactions
fkampcommented, Oct 3, 2022

I’m closing this issue as we’ve resolved the issues around displaying custom kernels (in the latest dev branch, soon to be released). If the issue persists, please feel free to re-open this issue or create a new one and we’ll be happy to look into them.

@DonJayamanne, I still faced this issue in this version: VSCode 1.71.2 Jupyter Extension v2022.8.1002431955 Python Extension v2022.14.0

This was missing until I updated “python” to the full path

{
  "argv": [
    "python",
    "-m",
    "aws_glue_interactive_sessions_kernel.glue_pyspark.GlueKernel",
    "-f",
    "{connection_file}"
  ],
  "display_name": "Glue PySpark",
  "language": "python"
}

Interestingly, this works fine without it:

{
  "argv": [
    "python",
    "-m",
    "aws_glue_interactive_sessions_kernel.glue_spark.GlueKernel",
    "-f",
    "{connection_file}"
  ],
  "display_name": "Glue Spark",
  "language": "scala"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find PySpark kernel - aws glue interactive sessions ...
According to this bug report this issue was fixed a while back VSCode Jupyter Issue 8286. However I'm still experiencing it as are...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
You can create a Jupyter Notebook by running the Create: New Jupyter Notebook command ... Next, select a kernel using the kernel picker...
Read more >
sparkmagic · master · mct19 / singularity-jupyter-scala · GitLab
Sparkmagic is a set of tools for interactively working with remote Spark ... to start a wrapper kernel for Scala, Python, or R...
Read more >
Configuring a session in Jupyter | PySpark Cookbook
The Sparkmagic project includes a set of magics for interactively running Spark code in multiple languages, as well as some kernels that you...
Read more >
Configuring AWS Glue interactive sessions for Jupyter and ...
Jupyter Magics are commands that can be run at the beginning of a cell or as a ... with IAM The Jupyter kernel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found