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.

how to create new kernel

See original GitHub issue

Hello experts, I’m wondering if anyone explains or provide me to how to create a new kernel? let me explain my issue: I have spark on my server in /usr/local/spark, I could use the built-in SparkR package in spark package in R language as making link of that to R library like: ln -s /usr/local/spark/R/SparkR/ /usr/local/R/library

as you know, to create pyhton2 kernel for jupyterhub we only need below code in /usr/local/share/jupyter/kernels/python2/kernel.json file:

{
 "display_name": "Python 2",
 "language": "python",
 "argv": [
  "/usr/bin/python2",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ]
}

now, I need to know how can I create scala and spark kernel for jupyter like above.

many thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alexarchambaultcommented, Apr 23, 2017

@vhp1360 Launching the jupyter-scala script like

$ ./jupyter-scala --jupyter-path /usr/local/share/jupyter

should install jupyter-scala under /usr/local/share/jupyter/kernels/scala. It doesn’t need a spark distribution - it downloads the spark jars itself, depending on the version users ask in the session (illustrated here).

0reactions
vhp1360commented, Apr 24, 2017

hi @alexarchambault, and thanks for your reply. your solution is good, but I tried to find a way to link Scala from Scala package also spark and pyspark from Apache Spark package to Python and then to Jupyter. it seems, I’m looking for a hard issue and should forget it. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Notebook Kernels: How to Add, Change, Remove
1) Use $ jupyter kernelspec list to see the folder the kernel is located in · 2) In that folder, open up file...
Read more >
How to Build Linux Kernel From Scratch {Step-By-Step Guide}
Step 1: Download the Source Code · Step 2: Extract the Source Code · Step 3: Install Required Packages · Step 4: Configure...
Read more >
Installing the IPython kernel — IPython 8.7.0 documentation
Note that this command will create a new configuration for the kernel in one of the preferred location (see jupyter --paths command for...
Read more >
How to compile and install Linux Kernel 5.16.9 from source code
1. Create signing keys and the public and private key for signing the kernel using the openssl command. 2. Enroll the key to...
Read more >
Create Your Own Kernel In C - CodeProject
If you are writing your own bootloader for loading a kernel you need to know the overall addressing/interrupts of memory as well as...
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