{"display_name": "Python 2","language": "python","argv": ["docker", "run", "-v", "/home/username:/home/username", "jupyter/username","/opt/conda/envs/python2/bin/python","-m","IPython.kernel","-f","{connection_file}"]}
[I 13:41:17.633 NotebookApp] Creating new notebook in /notebooks[I 13:41:18.821 NotebookApp] Kernel started: ef649e50-da43-42c5-99a0-8d026dff2178NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.To exit, you will have to explicitly quit this process, by either sending"quit" from a client, or using Ctrl-\ in UNIX-like environments.To read more about this, see https://github.com/ipython/ipython/issues/2049To connect another client to this kernel, use:--existing kernel-ef649e50-da43-42c5-99a0-8d026dff2178.json[W 13:41:28.949 NotebookApp] Timeout waiting for kernel_info reply from ef649e50-da43-42c5-99a0-8d026dff2178
On Jun 4, 2015, at 12:16, Marius van Niekerk <marius.v...@gmail.com> wrote:Is there a simple way to start a kernel as a docker container? I don't want to have to start my notebook server as a container.I tried to set one up with a kernel.json like{"display_name": "Python 2","language": "python","argv": ["docker", "run", "-v", "/home/username:/home/username", "jupyter/username","/opt/conda/envs/python2/bin/python","-m","IPython.kernel","-f","{connection_file}"]}
I assume for the connection file inside the kernel i'd have to change the key and signature_schema to match those mentioned in the {connection_file}and then make my container EXPOSE a set of static port like"stdin_port": 60000,"control_port": 60001,"hb_port": 60002,"shell_port": 60003,"iopub_port": 60004Or do i not really need to care about the key / sig
--
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+u...@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/CAOvn4qiKtXjmC81fU14S23u9jH35%2BKJSp5fUw%3DjmCdoeMkSpCw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CA%2BtbMaVwxSy16Zjt4mPvzA%2B%3DpdW4u0PW2mxQeqnUgCTsu2cJmw%40mail.gmail.com.
--
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/b22a6d05-25c6-4e24-ae2b-df9ea723ed6c%40googlegroups.com.
AshwinWe have used Singularity (http://singularity.lbl.gov/) containers in Jupyter Notebooks with relative ease. Some notes available here:Thanks,
https://github.com/clemsonciti/singularity-in-jupyter-notebook
On Tue, Jul 25, 2017 at 5:10 AM, Stojan Jovanović <whyisepsilonneverlessthanzero@gmail.com> wrote:
Hi James,I'm currently buidling something very similar to what you're talking about.I've currently got it set up so that I can access multiple Dockers, containing isolated machine learning models, through a Jupyter notebook (located in a third Docker), via SSH.It wasn't super difficult to do, although I'm not claiming it was done very elegantly.If you're interested, you can take a look here https://github.com/stojan211287/DockerSSH. I've uploaded a minimal example, consisting of one "drone" and one "overlord" container. The overlord issues commands via SSH, the drone complies and delivers.As it stands now, I've based the images on Alpine 3.6 and am currently using them as base images for further development.- the overlord get Jupyter installed on top of it, and the drone, for example, can host scikit-learn.
On Wednesday, 24 May 2017 23:10:34 UTC+2, James wrote:Hey, sorry to revive this thread again, but having docker container kernels (and not whole jupyter server systems) would be very useful for me. My use case is having certain hard to build scientific software installed within the container. That way you could call out to them using python's subprocess calls from within the notebook. My goal would be to make several kernels, accessible from the same notebook server, to act as a toolkit of sorts for my lab. Ideally having the kernels in containers would make them easy to share and install in sister labs at other institutions for use in their Jupyter ecosystem. Thank you for any guidance!
--
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+u...@googlegroups.com.
Hi guys,I think I have the same use case and I was wondering whether this discussion is still up to date.The idea is to have a Jupyter running on a local machine which has one or more docker containers running at the same time. These containers provide for example different python versions like 3.6 and 3.7.Now the question is how to add an external kernel to Jupyter. The kernel is of course running in the docker container.https://gist.github.com/mariusvniekerk/09062bc8974e5d1f4af6 is this approach still valid @ Marius?I have also read that it is possible to connect via ssh to a remote kernel in Jupyter but in that case SSH needs to be configured in the container.Can anybody tell me what solution is still working for him?
Thanks a lot in advance and kind regards!
Am Mittwoch, 26. Juli 2017 14:23:08 UTC+2 schrieb Ashwin Srinath:
AshwinWe have used Singularity (http://singularity.lbl.gov/) containers in Jupyter Notebooks with relative ease. Some notes available here:Thanks,
https://github.com/clemsonciti/singularity-in-jupyter-notebook