Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add run_cell, etc. utilities #176

Closed
minrk opened this issue Jul 28, 2016 · 4 comments
Closed

add run_cell, etc. utilities #176

minrk opened this issue Jul 28, 2016 · 4 comments
Milestone

Comments

@minrk
Copy link
Member

minrk commented Jul 28, 2016

We've reimplemented running a cell against a Jupyter kernel in Python in a few places (nbconvert --execute, a few others).

We should probably have a few utility functions (or methods) in this repo that can be re-used.

Cases:

  1. run cell and capture all output
  2. record that output in nbconvert
  3. redisplay that output in IPython
@minrk
Copy link
Member Author

minrk commented Jul 28, 2016

This is prompted by the fact that I wrote yet another version of these for dask here.

It would be cool to also have a %load_ext jupyter_client that registers magics for running cells on remote kernels, as we did over there.

@dsblank
Copy link
Member

dsblank commented Aug 9, 2016

Here is a working version using the function from Min's dask link:

https://github.com/dsblank/jupyter_client/blob/master/jupyter_client/runapp.py

For some reason, when using a python3 kernel, it occasionally hangs waiting for output. But other kernels seem to work fine.

@takluyver
Copy link
Member

That looks ready for a PR.

@dsblank
Copy link
Member

dsblank commented Aug 9, 2016

PR created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants