Best way to distribute kernels

47 views
Skip to first unread message

Didier Amyot

unread,
Oct 17, 2017, 9:03:31 PM10/17/17
to Project Jupyter
Hi there,

I am building a kernel for clojure and I would like to know what is the best way to distribute a kernel.  Personally, I would like a user to be able to pip install jupyter-clojure and then that magically the user would have a clojure kernel in his jupyter settings.  But here, I see many issues as python setuptools is not made to play in the user's home directory (not to raise the permission and security issues). 

Anyway, are there kernels that are easy to install that I should copy?

cheers,

didier

sp...@draves.org

unread,
Oct 17, 2017, 10:20:57 PM10/17/17
to jup...@googlegroups.com, Scott Draves
Hi Didier, pip and conda work well for beakerx, and your situation sounds similar so they might work for you.

The pip package installs regular static files for the kernel (or whatever) into the environment only, as usual.
and then the user runs a 2nd command to install the kernel into jupyter.  Conda installs the
same python package, and then automatically runs the installer.  The exact commands run by a user would be similar to these: http://beakerx.com/documentation#tutorials-and-examples (but a bit simpler since you don't need ipywidgets).

here's how that's implemented.

the installer:

and the post-link scripts in the conda recipe that runs the installer:



--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c997eef6-d821-4719-b821-1446e242e9a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Didier Amyot

unread,
Oct 18, 2017, 7:43:23 AM10/18/17
to jup...@googlegroups.com
I was about to replay that this solution is a hack but it actually make sense in conjugation with jupyter kernelspec install/remove.  I'll write something and comeback on the thread for my feedbacks.

thanks!

didier

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/PvcNxwAcbLw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages