-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Merge divergent Kernel implementations #1630
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
ff8a701
drop in apply_request handler in zmq.ipkernel
minrk 09cd42a
lazy-formatting logs in ipkernel
minrk 1901b79
allow multiple shell_sockets in ipkernel
minrk 1587a7f
allow aborting tasks
minrk fbf9e2e
respect copy flag in Session.recv
minrk d362026
Don't copy shell requests
minrk ed57daf
move apply serialization into zmq.serialize
minrk 6174cb0
add ids to ipkernel
minrk 9440f9e
use IOLoop in ipkernel
minrk 24fdfb1
use IPython.zmq.kernel in parallel Engines
minrk 5c5118d
allow exceptions in handlers without crashing
minrk 7f6086f
use execute_request for parallel execute, instead of apply
minrk 08b95f8
scrub: ident on iopub
minrk ccd2ca4
enable topics on IOPub messages
minrk 02449c1
use shell namespaces in apply_request
minrk c6717a5
don't abort queue on execution failure
minrk 716157f
avoid passing code objects to execute, now that execute uses code-as-…
minrk f9d7005
fixup shutdown/exit now that we use IOLoop
minrk 3724f43
remove now-obsolete kernel fork used in engine
minrk cfdfd64
don't use history files in Engines
minrk 99269af
add silent kwarg to run_cell
minrk de14aa1
use new run_cell(silent=True) instead of run_code in ipkernel
minrk c5c7935
do not use ZMQStream for IOPub
minrk 2f3f0c8
remove disused pykernel
minrk 4048621
remove references to removed pykernel and associated pure flag
minrk 5cc602b
fix subheaders for execute_reply and aborted messages
minrk 3531213
test resubmit of aborted tasks (#1647)
minrk 4cda2dc
fix Kernel import in engineapp
minrk d8f08af
fix kernel_argv in qtconsole
minrk 788c738
expose silent in view.execute
minrk 60c884a
track display data in the parallel Client
minrk a27adad
discard parallel.util.asbytes in favor of py3compat.cast_bytes
minrk e0899e5
fix topic on displayhook in ZMQShell
minrk e7f402a
fix message when trying new table due to mismatch in SQLiteDB
minrk 4e5eb7d
soften messages for monitor messages with bad topics
minrk fa181ff
resubmitted tasks are now wholly separate (new msg_ids)
minrk 3c9c367
remove old _really_apply call
minrk 6423e9d
store execute_replies in a nice wrapper
minrk d34fb7b
minor fixes to allow kernel to be re-entrant
minrk f56f5a1
upstream change preventing kernel exit on SIGINT during eventloop int…
minrk 13736b9
InteractiveShell.restore_sys_module_state actually restores main
minrk ea917e3
test re-entrant embed_kernel
minrk 0d0437b
undo initial clobbering done by init_sys_modules in embed_kernel
minrk 176eff9
add @interactive decorator to IPython.parallel namespace
minrk 05f0cd8
add len(view)
minrk cf52d06
add topic to display publisher, and fix set_parent for apply_requests
minrk 1805e53
test new execute/output behaviors
minrk efa86d9
clearer error when trying to use closed Client
minrk 04351cd
Don't use asserts when checking for connection files
minrk 4cb7712
fix date objects in _reserialize_reply
minrk 4afa366
disable save-thread when using in-memory history db.
minrk ea84367
fix run_cell signature in parallelmagic
minrk e4f5c29
expose kernel at app-level, so EngineApp looks like KernelApp
minrk e9a0b8e
check for any Application with Kernel in zmq.eventloop
minrk 7576fb6
test %pylab on engines
minrk 85e05e1
demote enter/exit eventloop messages to INFO
minrk d2f71ea
move default log setup to _log_default from init_logging
minrk 9fc6597
Application.log_format is a configurable
minrk f24fe97
split init_sockets into a few steps, so they can be better reused
minrk 3b1700a
reduce parentless IOPub message to warning level
minrk 23d0ff7
add listen_kernel method to IPEngineApp
minrk 83b4b12
allow embed_kernel to be called from engine
minrk 3fab994
kernel app cleans up connection files that it wrote
minrk 100a5e3
relax some timing constraints in parallel tests
minrk 46db02d
store whole content, instead of just display data in metadata.outputs
minrk e0b0d5e
revert embed_kernel changes that implied bind_kernel in engine
minrk 64f2f8d
add IPython.parallel.bind_kernel
minrk 45a4d04
use [sys.exe, "-c", "…launch_new_instance()"] in launchers
minrk 87af741
switch order of failed-to-start errors in test_embed_kernel
minrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
store whole content, instead of just display data in metadata.outputs
- Loading branch information
commit 46db02de8172b63a623a8822da896285133d2083
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you are processing the pyout message type, but what about the other message types associated with output (stream, display_data). Shouldn't we also forward those in some way? I suppose we could take those other message types and put them into the
_repr_*method output as well. The resultingExecuteReplyobject would end up flattening these different message types, but they would still be there.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the
_repr_*mechanism assumes singletons, we cannot do this. What is the_repr_png_of a dozen PNGs?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I have been quite frustrated on numerous occasions by this general shortcoming of the display system. I think we should revisit the whole
_repr_foomachinery and consider allowing it to return containers of a given mimetype, rather than a single entry. Once that is done, then it might make sense to include display_data outputs in these reprs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option would be to special case repr_json to include everything - outputs, pyout/err, stdout/err, execution_count, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of allowing the
_repr_foomethods to return a sequence of things to display. There really isn't any reason to not do that. And we should be able to support that without breaking existing code because all of the existinng methods should return strings.