ipykernel icon indicating copy to clipboard operation
ipykernel copied to clipboard

Proposal: remove some ipyparallel-specific functionality

Open minrk opened this issue 10 years ago • 9 comments

Mainly the apply message-related bits. These aren't part of the wider Jupyter message protocol, and are wholly Python specific. These can be moved to ipyparallel, and attached to the Kernel in a subclass.

minrk avatar May 12 '15 19:05 minrk

No objections from me.

takluyver avatar May 12 '15 20:05 takluyver

Missed the boat for 4.0 on this one, but I still think it's the right move in the long run.

minrk avatar Jul 14 '15 21:07 minrk

FYI, we use the ipyparallel bits in wrapper kernels (via metakernel) to run other languages in parallel. This is quite powerful, and hope that we can keep that functionality.

dsblank avatar Oct 12 '15 13:10 dsblank

@dsblank how do you use those kernels in parallel? Are you using ipyparallel at all? I mainly mean to remove the native-serialization stuff (data-pub, apply), not anything else, which shouldn't affect any kernels other than IPython.

minrk avatar Oct 12 '15 14:10 minrk

@dsblank I've implemented most of what I intended in ipython/ipyparallel#61. I don't understand enough about how your use of parallel in metakernel works, so I don't know how to tell what would be affected. Can you provide some examples that I can test with?

minrk avatar Oct 27 '15 17:10 minrk

Sorry for the delay. Here is a short example:

  1. Install a metakernel-based kernel: pip3 install metakernel_bash --user
  2. Start a cluster
  3. Start the kernel
  4. Start remote kernels: %parallel metakernel_bash MetaKernelBash
  5. Execute a command: %px uname

Hopefully that will still work. Thanks!

dsblank avatar Oct 27 '15 18:10 dsblank

@dsblank thanks, that still works after the above PR. Since it looks like you are sitting on top of the existing IPython engines and clients, moving the implementation shouldn't have any effect on your use case.

minrk avatar Oct 27 '15 19:10 minrk

Thanks for checking @minrk ! It is quite nice to have Parallel Java, Parallel Scheme, Parallel Cobol ...

dsblank avatar Oct 27 '15 20:10 dsblank

bump to 6.0 ?

Carreau avatar Sep 12 '18 11:09 Carreau